LoadOnDemand RadComboBox inside an Ajaxified RadGrid

6 posts, 0 answers
  1. Clinton Smyth
    Clinton Smyth avatar
    72 posts
    Member since:
    Apr 2007

    Posted 18 Aug 2010 Link to this post

    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
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 20 Aug 2010 Link to this post

    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
  3. Clinton Smyth
    Clinton Smyth avatar
    72 posts
    Member since:
    Apr 2007

    Posted 18 Oct 2010 Link to this post

    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
  4. Yana
    Admin
    Yana avatar
    5024 posts

    Posted 22 Oct 2010 Link to this post

    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
  5. AdventurGurl
    AdventurGurl avatar
    7 posts
    Member since:
    May 2010

    Posted 25 May 2011 Link to this post

    Was there ever any resolution to the issue posted in the support ticket # 358716?

    Thanks,
    Carrie
  6. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 26 May 2011 Link to this post

    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.

Back to Top