This is a migrated thread and some comments may be shown as answers.

LoadOnDemand RadComboBox inside an Ajaxified RadGrid

5 Answers 112 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Clinton Smyth
Top achievements
Rank 1
Clinton Smyth asked on 18 Aug 2010, 11:29 PM
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

5 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 20 Aug 2010, 07:02 PM
Hi Clinton Smyth,

An example showing the first issue will greatly help us pinpoint the cause. Otherwise it is unclear why this is happening on your side. In this sense, could you open a support ticket and send us a reproducible sample there?

Regarding your final question, using the client-side Load event to pre-populate some Items in the control is a completely valid approach. Does it fit in your requirement?

Sincerely yours,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Clinton Smyth
Top achievements
Rank 1
answered on 19 Oct 2010, 04:13 AM
Hi

I've been busy with other parts of the project and only now have time to look at this.  Regarding the first issue, please confirm there are no known issues with using a ajaxified RadComboBoxes inside an ajaxified RadGrid.  I've uploaded an example: support ticket: 358716.

The second issue is ok - using the client scripts to trigger the load appears to work ok (although I'm surprised we can't do it directly on the server side).

Thanks
0
Yana
Telerik team
answered on 22 Oct 2010, 10:13 AM
Hello Clinton,

Thank you for sending the project.  We're currently working on the case and we'll send the results as soon as we're ready.

Regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
AdventurGurl
Top achievements
Rank 1
answered on 25 May 2011, 01:03 PM
Was there ever any resolution to the issue posted in the support ticket # 358716?

Thanks,
Carrie
0
Helen
Telerik team
answered on 26 May 2011, 10:36 AM
Hi Carrie,

We didn't find any common solution that works in various use cases.
We believed the posted workaround worked for you?

Greetings,
Helen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ComboBox
Asked by
Clinton Smyth
Top achievements
Rank 1
Answers by
Simon
Telerik team
Clinton Smyth
Top achievements
Rank 1
Yana
Telerik team
AdventurGurl
Top achievements
Rank 1
Helen
Telerik team
Share this question
or