Treeview - item onclick event

2 posts, 0 answers
  1. S
    S avatar
    1 posts
    Member since:
    May 2012

    Posted 13 Jun 2012 Link to this post


    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
  2. Plamen
    Plamen avatar
    3047 posts

    Posted 18 Jun 2012 Link to this post

    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.
Back to Top