Simple Example of treegrid usage in jqueryeasyui

Source: Internet
Author: User
This article mainly introduces the simple example of treegrid usage in jqueryeasyui. If you need some help, you can refer to it and hope to help you with your project requirements. For example, in the json data returned by the server, to be processed by JS, add the check box and respond to JS operations.

No ready-made Plug-ins are found in treegrid of easyui. You need to modify and organize the Code as follows:

 
 
Name Node Status Remarks

Control

The above is the entire HTML code. The advantage of easyui is that all the attributes called by JS can be directly written in the table attribute, Which is intuitive and easy to understand. Next, add the checkbox.

// The data in the name column is formatted as Hua var access_node = '{$ _ REQUEST [access_node]}'. split (','); function title_formatter (value, node) {var content =''+ Value; return content;} function set_power_status (menu_id) {alert ('write the functions and operation methods to call here ');}

The $(set_power_1 ") method in checkbox cannot respond, probably because easyui has been processed.

For more articles about simple examples of treegrid usage in jquery easyui, refer to PHP!

Related Article

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.