Hi Dinko and Team,
As I mentioned in the previous forum, We need fix for Raddropdownlist.SelectedIndex.
When we set SelectedIndex=5 or some value in selectedIndexchangedEvent then the recursive call is happening for SelectedIndex. So we need to restrict the recursive call for both Raddropdownlist.DataSource as well as Raddropdownlist.SelectedIdex.
private void radDropDownList1_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
fillIndustryProcess1(); // radDropDownList1.DataSource = dt; when we set Datasource the recursive call is occurring
radDropDownList1.SelectedIdex = 5; // radDropDownList1.SelectedIdex = 5; when we set Datasource the recursive call is occurring
}
public void fillIndustryProcess1(){
try
{
System.Data.DataTable dt = new System.Data.DataTable();
if (dt.Columns.Count > 0)
{
dt.Columns.Add("Industry", typeof(string));
dt.Columns.Add("ID", typeof(int));
dt.Rows.Add("BGL-0", 0);
dt.Rows.Add("BGL-1", 1);
dt.Rows.Add("BGL-2", 2);
dt.Rows.Add("BGL-3", 3);
dt.Rows.Add("BGL-4", 4);
radDropDownList1.DisplayMember = "Industry";
radDropDownList1.ValueMember = "ID";
}
radDropDownList1.DataSource = dt;// Recursive call occurs
radDropDownList1.SelectedIndex = 0;/ Recursive call occurs
}
catch (System.ComponentModel.Win32Exception ex)
{
throw ex;
}
}
Old Forums in which , Telerik team fixed the RadDropDownList .SelectedValue.
Previous forums in which , Telerik team yet to fix for RadDropDownList.Datasource.
Thanks,
Maheswari