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

From javascript how to fill RadComboBox Treeview control with json data

1 Answer 104 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
shamim
Top achievements
Rank 1
shamim asked on 29 Mar 2015, 04:44 AM
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.

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 01 Apr 2015, 08:54 AM
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.

 
Tags
ComboBox
Asked by
shamim
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or