Home > Web Front-end > JS Tutorial > A simple example of treegrid usage in jquery easyui_jquery

A simple example of treegrid usage in jquery easyui_jquery

WBOY
Release: 2016-05-16 16:59:36
Original
1162 people have browsed it

The project requirements are as shown below. In the json data returned by the server, it must be processed by JS and check boxes must be added, and the check boxes must respond to JS operations.

In easyui's treegrid, no ready-made plug-in was found. I need to modify it myself. The code is as follows

Copy the code The code is as follows:


                                                                                                     tr> ">Node
                                                                                                                                                                                                                   " th>
                           < a href="javascript:alert('test');" class="easyui-linkbutton" iconCls="icon-add" plain="true">Control
   


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




Copy code

The code is as follows:
function set_power_status(menu_id){
alert('Write the function and operation method to be called here');
}


Use checkbox with $(set_power_1 ") This method cannot respond. It is probably because of the processing by easyui.
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