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

[Solved] RAD TreeView inside RAD Combo

1 Answer 129 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ramjee
Top achievements
Rank 1
Ramjee asked on 11 Mar 2010, 06:00 PM

I have implemented a Rad Drop-down "Region" and a rad drop-down "Country/Locations" which contains a tree view. The Country/Locations works fine on the page load where all values are populated. However, I am trying the filter the "Country/Locations" drop-down values when the user selected a region. For example by default all countries are listed with their locations as child nodes. When I select "Region" ="All Americas", I want to invoke the server-side ItemRequested event of the "Country/Locations" drop-down control which will clear the existing values and set a new set of data which will contain only the filtered values.

Currently, the item Requested event is firing. However, I get the following javascript-error:

"Script Control 'radTreeLocations' is not a registered script control. Script controls must be registered using register ScriptControl() before calling RegisterScriptDescriptors().

Parameter name: scriptControl

If I filter the data on the client-side by using this example:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

The script takes a long time to execute and i get a warning message 

"A script on this page is causing Internet Explorer to run slowly"

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Vesko
Top achievements
Rank 2
answered on 16 Mar 2010, 10:50 AM
You cannot have RadTreeView (or any other RadControl) in a load-on-demand RadComboBox.

So, you need to use the javascript approach. Have a look at this article which suggests how to avoid that message:

http://www.telerik.com/help/aspnet-ajax/troubleshooting-treeview-script-causes-ie-run-slowly.html


Tags
TreeView
Asked by
Ramjee
Top achievements
Rank 1
Answers by
Vesko
Top achievements
Rank 2
Share this question
or