Unplanned
Last Updated: 06 Jul 2020 16:09 by ADMIN
Suresh G
Created on: 06 Jul 2020 05:41
Category: GridView
Type: Bug Report
0
RadGridView: RadDropDownListElement.SelectedValue is Null in ValueChanged event

Hi

Please find attached sample project having 2 different reference folder(Telerik2018,Telerik2020) for Telerik.

Code flow & Issue description: I have Event "radGridView1_EditorRequired" in which i have attached another event on value changed "Editor_ValueChanged" in which we get data gron DropdownListElement using ((RadDropDownListElement)(sender)).SelectedValue.
Issue is when we use version (2018.3.1016.40) we get selected value text, in case of current version (2020.1.218.40) we get null value.

Current version DLL  2020.1.218.40 (Issue in current version)
Previous version DLL 2018.3.1016.40 (Working fine)

Note : I have also attached both version of Telerik DLL in sample project, you can reproduce issue by referencing to 2020.1.218.40 version. After selecting values as shown in attached screenshot you will get null value as shown in another screenshot.

Please find attached screenshot  for selecting values to reproduce issue as well where we get null value.

 

Thanks and Regards

1 comment
ADMIN
Nadya
Posted on: 06 Jul 2020 16:09

Hello, Suresh,

The provided project and information is greatly appreciated.

I was able to observe the same behavior with the specified Telerik versions. I have logged this issue on our Feedback portal by making this thread public. You can track its progress, subscribe for status changes, and add your comments on the following link - feedback item. I have also updated your Telerik Points for the report. 

Currently, the possible solution that I can suggest is to use the SelectedIndexChanged event that fires when the selected index has changed. Then you can use the index to get the value from the Items collection of the list.

private void Editor_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
    int index = ((RadDropDownListElement)(sender)).SelectedIndex;
}

I hope this helps. Should you have other questions do not hesitate to contact us.

Regards,
Nadya
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.