RadcomboBox issue with menu control in template

2 posts, 0 answers
  1. sudhir singh
    sudhir singh avatar
    3 posts
    Member since:
    May 2010

    Posted 28 Apr 2011 Link to this post

    I have a combobox that shows data in columns which are template column with Link buttons. It also has a linkbutton in header.
    Linkbutton in header needs to be made visible when the user types in some text.
    The combobox shows "Recently viewed records" and when the user types in some text i rebind the combobox with a master data
    which is a different collection from the recently viewed items so i clear out the prevoius items and bind matching records from the
    typed text from the master recordset.
    Each of my record has a menu that has dynamic data as per the record based on a relationship.
    When i rebind the data when user types a text i get an error saying "Script control 'menuClients' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().Parameter name: scriptControl"
    also am not able to make the linkbutton in header visible when user types the radcombo textbox.
    One of the fixes I found was to make “RegisterWithScriptManager = ‘false’” but then the menu’s clientside events are lost (as in it doesn’t show the menu item list on hover).
    Would really appreciate a response.

  2. Kalina
    Kalina avatar
    918 posts

    Posted 02 May 2011 Link to this post

    Hello sudhir singh,

    As I can see from the screenshot of your code - you use RadComboBox with Load-On-Demand.
    When RadComboBox uses Load-On-Demand feature - RadComboBoxItems are loaded during callback.
    However the RadMenu is not able to register its scripts during callback and this causes the issue.
    Let me suggest you avoid usage of Load-On-Demand in your case.

    All the best,
    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