Hello Veselin,
I have 10 comboboxes on the form and I have an requirement of setting 9 comboobxes index if 1st combobox index is changed. This verification is again done from db. Thats why i want to fire it on server side. I can place the code of the SelectedIndexChanged event handler in the SetComboboxSelectedIndex method but i dont know which event is related to the combobox passed in the method SetComboboxSelectedIndex .
However i got around with this problem. This i can acheived as follows:
///
<summary>
/// Sets the index of the combobox selected.
/// </summary>
/// <param name="combox">The combox.</param>
/// <param name="selectedvalue">The selectedvalue.</param>
private void SetComboboxSelectedIndex(RadComboBox combox, int index)
{
MethodInfo[] methods = combox.GetType().GetMethods();
foreach (MethodInfo m in methods)
{
if (m.Name == "set_SelectedIndex")
m.Invoke(combox,
new object[] { index });
}
}
If any one is having better option than this.. Please let me know...
Thanks
Vikas