Hi,
I have one radcomobobox, on its selectedindexchanged event, I am binding it with new values.
It is ok when I bind it first time, it do show the first item selected. But when the selectedindexchanged event fires, it still shows the previously selected item (only text, when I click on comobo, it shows the new item selected), even though I assign selected index every time on binding.
Below is a code of binding.
I tried this too after the above code, but still not done.
DDEvent.SelectedItem.Text = DDEvent.Items(0).Text
I have one radcomobobox, on its selectedindexchanged event, I am binding it with new values.
It is ok when I bind it first time, it do show the first item selected. But when the selectedindexchanged event fires, it still shows the previously selected item (only text, when I click on comobo, it shows the new item selected), even though I assign selected index every time on binding.
Below is a code of binding.
for (i = 0; i <= dtable.Rows.Count - 1; i++) |
{ |
DDEvent.Items.Add(new RadComboBoxItem("text", "value"); |
} |
DDEvent.SelectedIndex = 0 |
I tried this too after the above code, but still not done.
DDEvent.SelectedItem.Text = DDEvent.Items(0).Text