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

Load on demand in template

3 Answers 102 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Lynda Lafreniere
Top achievements
Rank 1
Lynda Lafreniere asked on 26 Aug 2008, 03:04 PM
Hi,

I've a control that contain a radcombobox in wich I've put a radmenu to make the selection. It's works great but now I want to add the "load on demand" option to my control to update de radmenu (the menu is filled with a SqlDataSource in the ascx).

When I try to use the "load on demand"  I got this error :
"Script control 'mnu_test' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Nom du parametre;: scriptControl"

My code looks like :
protected void list2_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) 
        { 
            (list2.Items[0].FindControl("mnu_test"as RadMenu).Items.Clear(); 
            list2.Items[0].FindControl("mnu_test").DataBind(); 
        } 

The update works in the code but the page does'nt update and the error is raised. Where's my error ?

Thx a lot !


3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 26 Aug 2008, 03:33 PM
Hi Lynda Lafreniere,

I am afraid this scenario is not supported. You cannot place a load-on-demand menu/treeview in the ItemTemplate of RadComboBox.

Best wishes,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Lynda Lafreniere
Top achievements
Rank 1
answered on 26 Aug 2008, 03:56 PM
There's no way to update the content of an itemTemplate with some ajax and use the OnTextChanged property of the radCombobox ? It would do about the same thing that the load on demand no ?
0
Veselin Vasilev
Telerik team
answered on 27 Aug 2008, 10:56 AM
Hi Lynda Lafreniere,

In the combo's  ItemsTemplate you can place a RadAjaxPanel and inside it put a treeview which nodes can have ExpandMode = ServerSide.

Please try it and let me know if you have more questions.

Greetings,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Lynda Lafreniere
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Lynda Lafreniere
Top achievements
Rank 1
Share this question
or