Yes, I'll try to stick together parent item ID and children item ID and than i'll parse this data on the server side script… but I hope you'll find another solution π
Thanks again.
Hi
Tony, sorry, but I have another question… or problem…
You use ID or NODEID to get NODE childrens throw request to server. It works fine in most cases. But what if several nodes have childrens with same ID.
For example node A has children B and children C, and node D has children B and children F… So that if I try to get the B's childrens your plugin will expand only one node… But I need two undependent branches in this example. So using of ID as NODEID is not good, becouse sometimes we need to generate really unique ID's for this tree, but at the same time we need to get childrens with using of any other fields…
What if we say to JqGrid (treegrid) that we want to use ΓΒoncrete field as nodeid? Or maybe I've already could use this feature?
mmm.. sorry π I've just found out that it doesn't work correctly almost when I expand row… so… any ideas of what should I do with my non-nested set? π
Okey, I've changed my data and it works now… But at the moment I have another question π First I'm going to explain situation… I have one table in database, there are huge amount of details and constructions in this table. They are connected by id = prior parentid… some thing like tree… But I cant't change database structure and there is no fields like lft, rgt and so on… π So I put random digits in this XML section and FALSE in leaf section… It works for me, when I expand rows, but it doesn't work when I colapse it…. I've looked into source code and found the solution. I've removed this condition: “parseInt(this.lft,10) > lft && parseInt(this.rgt,10) < rgt" from getNodeChildren method… But it seems ugly to change source code, becouse now I should do it after each update π Could you add property or some thing else to fix this for cases like I had? Or may be I haven't considered some thing really important that could help me?
Hi Tony.
First of all, We really appreciate you work!
But of course I have several questions. ![]()
I've had no problems with JqGrid (maybe becouse of good docs), but I can't succeed with TreeGrid. I've made an example which works with my JSON data, I've also made an example which works with your XML data I took it from your example). And my XML example works, but at the same time my JSON example doesn't work ![]()
Does this plugin work only with XML datatype ?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top