Hi
We've written a user control that has a RadComboBox using LoadOnDemand. It works fine when placed directly on the page, however, we run into problems with it inside a RadGrid that uses Ajax.
Although it renders ok, the problem is it does not populate the RadComboBox with data. Currently it displays 'Loading' and then fails.
I suspect the ajax in the RadGrid isn't playing nicely with the ajax in the RadComboBox. The RadGrid's ajax is managed by a RadAjaxManager. My thought was to include the RadComboBox as an AjaxUpdatedControl in the RadAjaxManager but I'm not sure how to do that. Firstly the RadComboBox is inside a user control, secondly it is created dynamically by the RadGrid, of which multiple may be opened at the same time (seeing as a RadComboBox is on each RadGrid row).
I'm using RadControls_for_ASP.NET_AJAX_2010_1_415_dev_hotfix.zip.
An additional issue is that we want the RadComboBox to preload the first X items (i.e. fire OnItemsRequested) on page load or preferably when the RadComboBox is initialised. The problem this causes is that it complicates when we can set the SelectedValue. It would also irritate the user if they have to wait for this when he/she opens the ComboBox list. Our work around is using OnClientLoad = "RadComboBoxLoad", and in the javascript we call: combo.requestItems('', false);. Is there a better way to do this?
Thanks
We've written a user control that has a RadComboBox using LoadOnDemand. It works fine when placed directly on the page, however, we run into problems with it inside a RadGrid that uses Ajax.
Although it renders ok, the problem is it does not populate the RadComboBox with data. Currently it displays 'Loading' and then fails.
I suspect the ajax in the RadGrid isn't playing nicely with the ajax in the RadComboBox. The RadGrid's ajax is managed by a RadAjaxManager. My thought was to include the RadComboBox as an AjaxUpdatedControl in the RadAjaxManager but I'm not sure how to do that. Firstly the RadComboBox is inside a user control, secondly it is created dynamically by the RadGrid, of which multiple may be opened at the same time (seeing as a RadComboBox is on each RadGrid row).
I'm using RadControls_for_ASP.NET_AJAX_2010_1_415_dev_hotfix.zip.
An additional issue is that we want the RadComboBox to preload the first X items (i.e. fire OnItemsRequested) on page load or preferably when the RadComboBox is initialised. The problem this causes is that it complicates when we can set the SelectedValue. It would also irritate the user if they have to wait for this when he/she opens the ComboBox list. Our work around is using OnClientLoad = "RadComboBoxLoad", and in the javascript we call: combo.requestItems('', false);. Is there a better way to do this?
Thanks