Hello AllI am using infragsitics tree view control.I have one stored procedure that returns 2 tables 1.Parent Table2.Child TableCurrently i m Binding the treeview on the basis of these 2 tables by using loops wherein i take one row of the master table, create one node , find the associated records in child table and add it under the Parent node.This method works fine when there are few records.But it really takes a hell lot of time when there are high number of records.
Is there any way to directly assign datasource to treeview ? without traversing through any loops manually? such that we just need to provide 2 tables containing master and child records as the datasource and the treeview manages it automatically and binds the data
Please help.. Thanks in advance
The best thing to do would be to use the InitializeDataNode event and set the value of the CheckBox cell when the node is created (e.ReInitialize is false).
Thanks for ur reply mate
I have still one more issue. I have an ultratree with checkbox and one column in my table which determines whethere it should be cheked or not...I am currently binding it manually and checkin for every node when it is created whethere the checkbox should be checked.
Now i want to do the same thing automatically when i bind the tree with datasource property..Relations are created properly and the tree shows perfect data. But handling the checkbox check is the only issue while assiging datasource
Please help
Hi,
See my post. http://forums.infragistics.com/forums/t/48765.aspx. I have a sample project attached written in vb. But there is a problem with which column is displayed in the child. Maybe this will get you going until there is another solution.
I find if I rearrange my child table to have my column ordinal as the same as the link table, then it displays my child column I want. NOT IDEAL!
Can u please explain me with an example ?
I tried it and got it working but it shows me entire 2 tabels in the treview. I only want to display 1 column from the parent table as parent and one column from the child table as its children
Like
Parent1
->Child1
->Child2
Yes, the control exposes a DataSource property.