Home > Web Front-end > JS Tutorial > Some practical little methods of jquery easyui combox_jquery

Some practical little methods of jquery easyui combox_jquery

WBOY
Release: 2016-05-16 17:07:10
Original
1235 people have browsed it

Copy code The code is as follows:

// combogrid refresh
$("#cc ").combogrid('grid').datagrid('load');

// combogrid sets which row is selected by default
$('#cc').combogrid('grid').datagrid('selectRecord',idValue);
where idValue corresponds to the idValue attribute defined by combogrid

// combogrid gets the pagination object
$('#cc').combogrid('grid').datagrid('getPager').pagination({
                 displayMsg:''
           });

// combogrid gets the current page number
$('#cc').combogrid('grid').datagrid('options').pageNumber;

// combobox selects the first one by default
var data = $("#cc").combobox('getData');
$("#cc").combobox("setValue",data [0].id);

// combotree defaults to the first one
var data = $("#cc").combotree("tree").tree('getChildren');
$("#cc").combotree ("setValue",data[1].id);

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