Hello Sean,
If you want to access the SelectedIndex of a combobox placed in the ItemTemplate of a RadToolBarButton, on clicking another RadToolBarButton, you can try out the following code in the ButtonClick event of the RadToolBar:
cs:
protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e) |
{ |
if (e.Item.Text == "ButtonAText") |
{ |
foreach (RadToolBarItem btn in RadToolBar1.Items) |
{ |
RadComboBox combo = (RadComboBox)btn.FindControl("RadComboBoxB"); |
if (combo != null) |
{ |
int index = combo.SelectedIndex; |
} |
|
} |
} |
} |
Thanks
Princy.