ExtJS Change the check state of the tree node click the button to remove the checkbox _extjs

Source: Internet
Author: User
There's a place in the system today that needs a feature. Click on a button to remove the checkbox before the tree node to a state that has no selection. Online search for half a day, and then check their own API, and finally found a solution, the following method posted.

The processing methods in the extjs3.x and 4.x versions are different and can be done in the 3.x version:
Copy Code code as follows:

Node.attributes.checked=false;
Node.getui (). Togglecheck (false);

This allows you to cancel the check state of the node and remove the tick on the page.

The methods in EXTJS4 are as follows:
Copy Code code as follows:

Node.raw.checked=false;
Node.set ("Checked", false);

This also can achieve the effect!

Practice the truth, the problem is not afraid of difficulties, do not retreat, will always be resolved.

Bao Jianfeng from sharpening out, plum blossom incense from the bitter cold.

If you think that reading this blog is a little rewarding for you, click the "Recommend" button in the lower right corner.

If you'd like to find my new blog more easily, you might want to focus on it or share it.

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.