treeview - infragistics igtree on hierarchy data -


i have data structure this:

 node parent     name 1    -1         level1 2     1         level2 - 1 3     1         level2 - 2 4     2         level3 - 1 5     2         level3 - 2 6     3         level3 - 3 .... 

this lead unlimited levels of data. , want use infragistics igtre build treeview that. checked few basic examples not helpful. example: http://help.infragistics.com/jquery/2013.1/ui.igtree limited pre-defined hierarchy structure. want build tree , furthermore want able add node @ level, , move node around. i'm using asp.net jquery ajax, infragistics control preferred. never done mvc model. can experienced on please send me sample code? many thanks.

the igtree dynamic control , isn't limited pre-defined hierarchy - granted, model has conform base schema - there's no way control can figure out bindings on it's own, can share single binding throughout entire tree. have @ right place - example i've taken add remove node api sample , similar binding created sample:

http://jsfiddle.net/damyanpetev/x4eab/

what meant demonstrate:

  • the initial hierarchy random (some items have additional levels) - not limited fixed levels @ start.
  • adding nodes can done @ level, new nodes can have multiples levels well, gives unlimited hierarchy need.
  • when define single binding used subsequent levers, items have 'text' property , have 'nodes' more items text , nodes inside , on.

    $("#tree").igtree({     bindings: {        textkey: 'text',        valuekey: 'text',        childdataproperty: 'nodes'     } }); 
  • due shared binding node can parent other, means can enable drag , drop single property , move nodes around please.

i'm assuming since want have unlimited hierarchy model items similar , match case, if not use linq fix them up. data structure gave doesn't describe model well, need more info if doesn't you.


Comments