This question is locked. New answers and comments are not allowed.
Hi All,
I'm very new to Telerik controls but have a pretty good grasp of programming. I'm missing something here. I am taking over a project from another programmer and need to conditionally set a combo box value. It seems that the value is getting set because the behavior of a dependent control indicates that, but the text of the combo is not populated with the text of the item coresponding to the selectedvalue.
Here is a snippet. I only want to populate and set if there is a pdiv value, otherwise I have the EnableLoadOnDemand behavior (I guess that's what it's called when you type in the combo and it looks the matching values up):
I'm very new to Telerik controls but have a pretty good grasp of programming. I'm missing something here. I am taking over a project from another programmer and need to conditionally set a combo box value. It seems that the value is getting set because the behavior of a dependent control indicates that, but the text of the combo is not populated with the text of the item coresponding to the selectedvalue.
Here is a snippet. I only want to populate and set if there is a pdiv value, otherwise I have the EnableLoadOnDemand behavior (I guess that's what it's called when you type in the combo and it looks the matching values up):
if (pdiv.Length > 0)
{
//make sure it's populated
rcbPDiv_ItemsRequested(
null, new RadComboBoxItemsRequestedEventArgs());
//set the value and text
rcbPDiv.SelectedValue = pdiv;
rcbPDiv.Text = pdivText;
}
Any and all help is greatly appreciated.