Home >Web Front-end >JS Tutorial >Some practical little methods of jquery easyui combox_jquery
// 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);