Hi,
I have a xamdatatree which I want to bind to a dataset which has results from Sql stored procedure. Can someone please provide me a sample on how to do achieve that. It is not showing any data in the tree.
Thanks.
Hello Mmegha,
We are still following this forum thread.Have you been able to take a look at the attached sample application?
Please feel free to let us know if you still have any questions or concerns with this matter.
Yes, that sample was really helpful. I was able to generate a tree with that. However, I want to add three levels in my tree and at root level I want to add a static text.
For example at root level I want to add Book, at first level I want to add different categories of books and at second level I want to add the book names for those categories. The root level text is not stored in my database so I do not know how to bind that to the categories. Can you please suggest how I can achieve that.
Thanks,
Megha
Hello Megha,
I can say that the XamDataTree can display the items from the Source only, so if you want to add a root element you have to add it to the DataSource, too and define a NodeLayout for it.
I have modified the sample I sent you before, so now you can Drag & Drop items without holding the control key down.
Hope this helps you.
Is there a way I can achieve same functionality without holding Ctrl key ?
Thanks
As I wrote in my previous post, you have to hold "Ctrl" key down while you are moving the XamDataTree items.
I am able to drag and drop within one tree but not from one tree to another. I get as error message " Cannot add external objects to list"
I tried you solution but I am getting an error " Cannot add external objects to this list". Can you please suggest how to solve that problem.