Hi,
I have 2 issues here :
ISSUE-1
I want to use the IgTree on an load-on-demand way. At the same time I want to create dynamic nodes. Basically my tree is a kind where users can create Child folders at any parent level. Dynamic folders can be from the context menu option of a any node. I could not find any such example of its kind.
ISSUE-2
I am using XML with hierarchical structure using client side binding. But I found the following limitation on igTree. (http://help.infragistics.com/Help/NetAdvantage/jQuery/2011.2/CLR4.0/html/igTree_Known_Limitations.html)
Could you please help me with ISSUE-1 and let me know when you will be providing the support for ISSUE-2
Thanks,
Anirban
Hi Anirban,
Is ISSUE-1 anything close to the scenario described here: http://forums.infragistics.com/forums/t/64875.aspx ? Note that as I have already described in that forum thread, add/delete nodes is not supported directly in the tree, but you can be doing it in the data source.
About ISSUE-2. Loading XML directly by the browser and using it as a data source is not a very common scenario as it is not consistently (if at all) supported by all browsers. Some browsers like IE throw security warnings, other directly block it. That is the reason for us to have better support for XML loaded on the server and delivered to the client in the form of JSON (this is the MVC XML scenarion sampled here: http://samples.infragistics.com/jquery/tree/binding-in-asp-net-mvc).
Is it a must for your purpose to have XML directly loaded on the client? XMLs are usually large and this is slow even in terms of loading time.
Looking forward to your reply!
Hi Konstantin,
Thanks for your reply. Here is my reply to your answers :
ISSUE-1 : Before I even add a node, how do I get to show the nodes in the tree when I do not know the level. The tree can have upto nth levvel. In that case what will be my approach to show the data. In all the examples shown, I see the child level is always known. In the example discussed http://forums.infragistics.com/forums/t/64875.aspx, what if I have a node like this :
Now to show the data on on demand basis, what will be my approach to create the nodes on an on-demand basis ?
I am now returning Json data back to the client. i.e. initially I load Node 100, Node 200 & Node 300. Now when user expands Node 100, I need to go and fetch the nodes Node001, Node002 & Node003. Again when user expands Node 003, since it has child nodes, I need to fetch Node003_1 and so on. Here, I do not know upto what level this can go.
Please note, the structure, I am returning on to the client, the parent node has a property where it always knows whether it has a child node or not.
I understand your point how to add Nodes to the level but that is coming at a later point.
Hope I am able to put my scenario. Please let me know your thoughts on this.