We have a RadComboBox that is placed within a RadPanelBar with several RadPanelItems. We want to use it as a wizard, where you step through it step-by-step, to ensure this, the RadPanelItems are enabled one by one when clicking "next" in the previous one. What we have noticed is that when we enable a RadPanelItem (changing enabled=false to enabled=true) the RadComboBox will set it's SelectedValue to the first row, and will fire the SelectedIndexChanged() (thats how we can see that the selectedvalue has changed), but it still won't display with the first row. Please note that the MarkFirstMatch is set to false and AutoPostBack is set to true.
So there are several strange things here, first, why does the SelectedValue change and the SelectedIndexChanged fire? And if it has changed, why isn't that row shown in the RadComboBox, instead it displays the "EmptyMessage" urging the user to select a row. (which we want).
If we use the exact same code but does not disable the coming RadPanelItems, this problem won't occur.
This is our Next-function:
private void GoToNextItem()
{
int selectedIndex = RadPanelBar1.SelectedItem.Index;
RadPanelBar1.Items[selectedIndex + 1].Selected = true;
RadPanelBar1.Items[selectedIndex + 1].Expanded = true;
RadPanelBar1.Items[selectedIndex + 1].Enabled = true;
RadPanelBar1.Items[selectedIndex].Expanded = false;
}
This is the example we have been looking at:
http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx
So there are several strange things here, first, why does the SelectedValue change and the SelectedIndexChanged fire? And if it has changed, why isn't that row shown in the RadComboBox, instead it displays the "EmptyMessage" urging the user to select a row. (which we want).
If we use the exact same code but does not disable the coming RadPanelItems, this problem won't occur.
This is our Next-function:
private void GoToNextItem()
{
int selectedIndex = RadPanelBar1.SelectedItem.Index;
RadPanelBar1.Items[selectedIndex + 1].Selected = true;
RadPanelBar1.Items[selectedIndex + 1].Expanded = true;
RadPanelBar1.Items[selectedIndex + 1].Enabled = true;
RadPanelBar1.Items[selectedIndex].Expanded = false;
}
This is the example we have been looking at:
http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx