Hi Dinko and Team,
As I mentioned in my previous forum, The below code is working in VS 2022 with 2013.3.1.1127 where as throwing stackoverflow exception in VS 2022 with Telerk 2024.1.130.48. Out product code structure is like below and we cannot declare and initialize the datatable globally. If we did that the whole application will get impact . Hence could you please restrict the recursive call of Raddropdownlist.Datasource and Raddropdownlist.SelectedIndex also like Raddropdownlist.SelectedValue. Which I raised in my previous forum
public void fillIndustryProcess()
{
try
{
System.Data.DataTable dt1 = new System.Data.DataTable();
if (dt1.Columns.Count <= 0)
{
dt1.Columns.Add("Industry", typeof(string));
dt1.Columns.Add("ID", typeof(int));
dt1.Rows.Add("USA-0", 0);
dt1.Rows.Add("USA-1", 1);
dt1.Rows.Add("USA-2", 2);
dt1.Rows.Add("USA-3", 3);
dt1.Rows.Add("USA-4", 4);
radDropDownList2.DisplayMember = "Industry";
radDropDownList2.ValueMember = "ID";
}
radDropDownList2.DataSource = dt1; ;//Still stack overflow exception occurring when bind the radDropDownList
radDropDownList2.SelectedIndex = 0;
}
catch (System.ComponentModel.Win32Exception ex)
{
throw ex;
}
}
Thanks,
Maheswari