I have a combobox created server side as so:
with the clientside event defined as:
The webservice call populates the combobox depending on the value of refID. My problem is that this value is dynamic. It changes depending on other elements on the page, and the combobox should be populated appropriately. The problem is, the combobox only seems to call the itemRequestEvent once, when it is opened the first time after page load.
Ideally I would like this event to fire every single time the dropdown is opened, with the combobox being repopulated each time. Is this possible?
myComboBox =
new
RadComboBox
{
ID =
"myComboBoxID"
,
EnableLoadOnDemand =
true
,
EnableItemCaching =
false
,
ShowMoreResultsBox =
false
,
EnableVirtualScrolling =
true
,
ItemsPerRequest = -1
};
myComboBox.WebServiceSettings.Path = myWebServicePath;
myComboBox.WebServiceSettings.Method = myWebServiceMethod;
myComboBox.OnClientItemsRequesting = myClientItemsRequestingEvent;
with the clientside event defined as:
myClientItemsRequestingEvent =
function
(sender, eventArgs) {
var
context = eventArgs.get_context();
context.refID =
this
.get_myRefID;
};
The webservice call populates the combobox depending on the value of refID. My problem is that this value is dynamic. It changes depending on other elements on the page, and the combobox should be populated appropriately. The problem is, the combobox only seems to call the itemRequestEvent once, when it is opened the first time after page load.
Ideally I would like this event to fire every single time the dropdown is opened, with the combobox being repopulated each time. Is this possible?