Create New RadTreeView from JavaScript

2 posts, 0 answers
  1. ketan patel
    ketan patel avatar
    5 posts
    Member since:
    Jan 2010

    Posted 15 Apr 2015 Link to this post


    I want to create RadTreeView from java script.


    I have used below code to create RadTreeView.

    var treeview1 = new Telerik.Web.UI.RadTreeView();


    But I am getting below error.


    Microsoft JScript runtime error: Unable to set value of the property 'control': object is null or undefined


    Please help me to create RadTreeView from java script.


  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 17 Apr 2015 Link to this post

    Hello Ketal,

    Our ajax components are connected with a server side counterpart and there should be a server definition of them. In case that you want to add a new treeview on the page you could do it with an ajax panel/manager and triggered an ajax postback which adds a new control in the form. 

    Peter Filipov

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top