EasyUI Forum

General Category => General Discussion => Topic started by: cdtuql on February 23, 2017, 01:25:44 AM



Title: the datagrid's getChecked() dos not work right
Post by: cdtuql on February 23, 2017, 01:25:44 AM
when I  check the datagrid on the title and  uncheck  all the rows  later the getchecked method return  a row (the last row)。
the code like :
columns:[[ 
          {field:'checkf',title:'checked',width:150,checkbox:true},



var rows = $('#BaseInfo_Gasdispenser_datagrid').datagrid('getChecked');

thanks



Title: Re: the datagrid's getChecked() dos not work right
Post by: jarry on February 23, 2017, 07:31:04 AM
Please look at this example https://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=CheckBox%20Selection%20on%20DataGrid. It works fine.