Hi, i have requirement to add Raddropdowntree programmatically to form. Also i am using Load on Demand approach to load data to raddropdowntree because i have more that 40,000 rows of data from sql server.
but i have a problem here if i hardcode raddropdowntree control in aspx page then load on demand works fine (i have copied that code from user 'Boyan Dimitrov' from telerik forum).
If i am creating raddropdown programmatically in .cs file (see the below code) then that code gives a error 'There was an error in the callback' when i try to expand any parent node.
RadDropDownTree datatreeview = new RadDropDownTree();
datatreeview.ID = raddptreename;
datatreeview.Attributes["CssClass"] = "radwidth";
datatreeview.Attributes["runat"] = "server";
datatreeview.Attributes["OnLoad"] = "RadDropDownTree1_Load";
datatreeview.EmbeddedTree.NodeExpand += embeddedTree_NodeExpand;
form1.Controls.Add(datatreeview);
loadtreeview(RadDropDownTree1, TreeNodeExpandMode.ServerSideCallBack);
Please guide me in fixing this problem.
but i have a problem here if i hardcode raddropdowntree control in aspx page then load on demand works fine (i have copied that code from user 'Boyan Dimitrov' from telerik forum).
If i am creating raddropdown programmatically in .cs file (see the below code) then that code gives a error 'There was an error in the callback' when i try to expand any parent node.
RadDropDownTree datatreeview = new RadDropDownTree();
datatreeview.ID = raddptreename;
datatreeview.Attributes["CssClass"] = "radwidth";
datatreeview.Attributes["runat"] = "server";
datatreeview.Attributes["OnLoad"] = "RadDropDownTree1_Load";
datatreeview.EmbeddedTree.NodeExpand += embeddedTree_NodeExpand;
form1.Controls.Add(datatreeview);
loadtreeview(RadDropDownTree1, TreeNodeExpandMode.ServerSideCallBack);
Please guide me in fixing this problem.