Home > Web Front-end > JS Tutorial > body text

Extjs changes the check status of the tree node and clicks the button to remove the check box_extjs

WBOY
Release: 2016-05-16 17:15:11
Original
1353 people have browsed it

There is a place in today's system that requires a function to remove the checkbox in front of a tree node after clicking a button, leaving it unselected. After searching online for a long time, and then checking the API myself, I finally found a solution. I will post the method below.

The processing methods in Extjs 3.x and 4.x versions are different. In version 3.x, you can do this:

Copy code The code is as follows:

node.attributes.checked=false;
node.getUI().toggleCheck(false);

In this way, you can cancel the check status of the node and remove the check mark on the page. The method of

in ExtJs4 is as follows:
Copy the code The code is as follows:

node.raw.checked=false;
node.set("checked",false);

This can also achieve the same effect!

Practice brings true knowledge. If you encounter problems, don’t be afraid of difficulties or shrink back. You will always be able to solve them.

The edge of a sword comes from sharpening, and the fragrance of plum blossoms comes from the bitter cold.

If you think you have learned something from reading this blog, you might as well click the [Recommend] button in the lower right corner.

If you want to discover my new blog more easily, you may wish to follow it or share it.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template