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

Treeview - item onclick event

1 Answer 67 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
S
Top achievements
Rank 1
S asked on 13 Jun 2012, 05:44 AM
Hi,

1) When the item is clicked in the treeview, the default value (datefieldID) of the clicked event should be retrieved. & further based on this value certain server side events can be called.

Request to provide the sample code for this.

2) "Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element", this error comes in case the value is NULL for the 1st parentID (root). On continue, the tree view is populated. Suggest some solution for this. Have added one 0 value as the ParentID, still the error comes.

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 18 Jun 2012, 06:41 AM
Hello ST,

 
This error can occur in various scenarios (not necessarily related to Telerik controls) however it is hard to guess the problem without having more information/code. Can you post the contents of the problematic page so that we can examine it? 

Meanwhile you can also refer to this help topic where is shown how a database of a RadTreeView should look. Please node that the ParentID fields of the roots are "null" not "0"

Kind regards,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
S
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or