Questions about jquery Easy Treegrid grading Skip Display

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.