From javascript how to fill RadComboBox Treeview control with json data

2 posts, 0 answers
  1. shamim
    shamim avatar
    9 posts
    Member since:
    Feb 2015

    Posted 28 Mar 2015 Link to this post

    Work on vs2012 web form project.Want to fill RadComboBox  treeview control  by json data. To fill the control I use bellow
    C# syntax. 

    DataSet ds =dwdb.ExecuteDataSet("sp_getItemGroupsList");
    ItemGroups iG =new ItemGroups();        
    //find the
    treeview  RadTreeView tree =(RadTreeView)this.RadComboBox1.Items[0].FindControl("RadTreeView1");
    tree.DataSource = ds;        
    tree.DataBind();


    Need syntax how to fill RadComboBox by json data on client site.
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 01 Apr 2015 Link to this post

    Hello,

    Use the RadDropDownTree control instead. This component is specially designed to handle such cases. My suggestion is to deserialize the JSON to an object and bind the control.


    Regards,
    Peter Filipov
    Telerik
     

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

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top