Hi,
I'm having problems with the RibbonBarDropDown. I'm having two RibbonBarDropDowns and as soon as in one is a specifc item selected, the other gets enabled.
I'm using RadAjaxManger and the "OnClientDropDownSelectedIndexChanged" event to do the ajax request.
In my code behind i'm doing the following:
List<string>boxValues = ViewModel.GetBoxValues();SecondBox.Items.Clear();SecondBox.Items.AddRange(boxValues.Select(x => new RibbonBarListItem() {Text = x}));if(boxValues.Count > 0){ SecondBox.Enabled = true; SecondBox.SelectedIndex = 0;}else{ SecondBox.Enabled = false;}
Everything is working fine except setting the selectedIndex. The selectedIndex is only set to 0 if the RibbonBarDropDown was enabled before.
Any suggestions what i'm doing wrong?