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:
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!