The Treegrid I write is asynchronous, because if I get all the data, it will load very slowly and affect the experience.
But today, a wonderful question, when I open the first two levels without problems, to the third level suddenly the third level of data jumped to the root node, I carefully see through the JSON data, no problem ah, it is very disturbing. Experiment for half a day, thought is the problem of style. Still no effect.
Because I know skip is nothing but two reasons.
1.json data is incorrect, the specified ancestor ID is incorrect
2.treegrid style problems, not written according to specifications
The second thing I feel is not going to happen, because the rest is fine. So I put the emphasis on JSON.
Kung Fu, finally let me find, I feel this with Treegrid internal JS conflict caused, is due to my database through the JSON data through the ancestor ID is 0, with the Treegrid default superior conflict, resulting in a direct jump to the root node, When I change the data ancestor ID to a data immediately.
Treegrid asynchronous way to get the way, be aware that the ancestor ID cannot be 0, otherwise there will be skip problems
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Questions about jquery Easy Treegrid grading Skip Display