Hi, I have a RADGRID as a template item inside a RADCOMBOBOX. It is loaded on demand. Now whenever I try to type anything on the text section of RADCOMBOBOX, it throws an error:
"Script control <grid_name> is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl."
"Script control <grid_name> is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl."
5 Answers, 1 is accepted
0
Hello Omarr,
The combobox should not be in Load on demand mode. EnableLoadOnDemand should be set to False.
That is because you have only one item in the combobox.
You can see a working example here: Load on demand grid in combobox
All the best,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The combobox should not be in Load on demand mode. EnableLoadOnDemand should be set to False.
That is because you have only one item in the combobox.
You can see a working example here: Load on demand grid in combobox
All the best,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Omarr
Top achievements
Rank 1
answered on 20 May 2009, 06:04 PM
I got most of the part working...but need to know how will it work if I enter a text in the combo box? I got it working if I enter the string in the combobox text field, but I have to PRESS ENTER key inorder to get the refreshed grid. What should I do to trigger the search on every key I press (like a simple combobox works when its Filter property is set to "Contains").
0
Hi Omarr,
You can subscribe to the OnClientKeyPressing event and use the sender.get_text() to get the currently typed text. Here you can make an ajax request to the server and filter your grid.
All the best,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can subscribe to the OnClientKeyPressing event and use the sender.get_text() to get the currently typed text. Here you can make an ajax request to the server and filter your grid.
All the best,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Omarr
Top achievements
Rank 1
answered on 21 May 2009, 01:58 PM
I attached the same code as what onClientDropDownOpening function has; but got a javascript null object error. Can you be more specific and write a sample code for me?
Thanks
Thanks
0
Hello Omarr,
At which line does the problem occur?
Can you paste here the relevant code please?
Regards,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
At which line does the problem occur?
Can you paste here the relevant code please?
Regards,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.