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

RADGRID inside a RADCOMBOBOX

5 Answers 119 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Omarr
Top achievements
Rank 1
Omarr asked on 19 May 2009, 07:06 PM
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."

5 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 20 May 2009, 06:48 AM
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.
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
Veselin Vasilev
Telerik team
answered on 21 May 2009, 08:09 AM
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.
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

 

0
Veselin Vasilev
Telerik team
answered on 25 May 2009, 03:29 PM
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.
Tags
ComboBox
Asked by
Omarr
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Omarr
Top achievements
Rank 1
Share this question
or