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

RadcomboBox issue with menu control in template

1 Answer 75 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
sudhir singh
Top achievements
Rank 1
sudhir singh asked on 28 Apr 2011, 10:05 AM
Hi,
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.

Thanks,
Sudhir.

1 Answer, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 02 May 2011, 06:12 PM
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,
Kalina
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
sudhir singh
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Share this question
or