I'm currently working on getting a treegrid going where I'm overriding the data functions to call a thrift service to fill in the data. The idea is that I load only the parent nodes then when the node is expanded it will dynamically call the thrift service to fill in the data. I have run into some quirks with the way the treegrid is behaving when I try to load the children dynamically. It will load the intial list fine but when I go to dynamically load the child it's not adding it when the parent is expanded. Now if you expand the second entry it add the child to the list in the correct position but it doesn't see it as a child of 287.
I can't seem to grasp what I'm doing wrong with it that it doesn't want to properly add as a child.
// The data that is returned via thrift to fill in the intial entry in the table
{
“total” : “13″,
“page”:”1″,
“records”: “720″,
“rows” : [{“id” : “287”,”cell” : [“287″,”MDXX00025”,true,0,null,false,false] }
,{“id” : “544″,”isLeaf”:true,”cell” : [“544″,”MDXX00460”,true,0,null,false,false] }]
}
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top