EasyUI Forum
April 19, 2024, 12:42:50 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: the datagrid's getChecked() dos not work right  (Read 5212 times)
cdtuql
Newbie
*
Posts: 26


View Profile Email
« 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

Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!