Jquery easyui combox some practical tips

  • 2020-03-30 01:04:23
  • OfStack


//Combogrid refresh
$( " #cc").combogrid('grid').datagrid('load');
//Combogrid sets which row is selected by default
$('#cc').combogrid('grid').datagrid('selectRecord',idValue); 
 Among them idValue The corresponding combogrid The definition of the idValue attribute  
//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 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 articles: