1   function onLoadSuccess(data) {
 2             var rows = $("#DataGrid").datagrid("getRows");
 3             if (rows.length > 0) {
 4                 rows = $("#DataGrid").datagrid("getSelections");
 5                 if (rows.length == 0)
 6                     $('#DataGrid').datagrid('selectRow', 0);
 7             }
 8             else {
 9                 $('#dgGD').datagrid('loadData', { total: 0, rows: [] });
10                 $('#dgYS').datagrid('loadData', { total: 0, rows: [] });
11             }
12         }

 

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2021-05-25
  • 2021-05-18
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
相关资源
相似解决方案