I am using a RadComboBox. In my code I set the selected value to the RadComboBox like so:
public void RCB_PO_NUM_DataBound(object sender, EventArgs e)
{
var itemRCB_PO_NUM = RCB_PO_NUM.FindItemByText(stringPO_NUM);
itemRCB_PO_NUM.Selected = true;
itemRCB_PO_NUM.Value = stringPO_NUM;
}
I am selecting a list of numbers from my database, and displaying them in the RadComboBox. So I have to use the DataBound event to get the data.
That works great till I set the AutomaticLoadOnDemand property to true. Once I do that, I get the desired effect that I want with the AutomaticLoadOnDemand property, and then lose the ability to set my RadComboBox to a selected value.
I need to be able to do both, the AutomaticLoadOnDemand really help the loading of the items in the RadComboBox to load really fast. The code doesn't have to be in the DataBound event. I really don't care what event it is in, just as long as both work. Can some please tell what method I use to set the AutomaticLoadOnDemand property to true, or what I am doing wrong?