EasyUI Forum
September 15, 2025, 06:23:00 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datalist singleSelect  (Read 9236 times)
jega
Full Member
***
Posts: 225


View Profile
« on: October 08, 2016, 02:24:11 PM »

Can't get singleSelect to work

<div id="scanEventID" class="easyui-datalist" title="Scan Event" style="width:600px;height:250px" data-options="
      url: 'getfromdb.asp?st=scaneventlist&showall=false',
      method: 'get',
      checkbox: true,
      singleSelect: true,
      selectOnCheck: false,
      checkOnSelect: false,
      idField: 'ID',
      textField: 'name',
      toolbar:'#toolbarEventID'
      ">
</div>

Still can select more than one row.

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 08, 2016, 05:03:38 PM »

You have set the 'singleSelect' property to true. This means that you can only select single row at a time. To select multiple rows, please set 'singleSelect' to false.
Logged
jega
Full Member
***
Posts: 225


View Profile
« Reply #2 on: October 09, 2016, 07:17:19 AM »

Hi stworthy

You haven't read my text proberly.  Cool

Have set: singleSelect: true

But i still can choose multi rows

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: October 09, 2016, 08:03:16 AM »

Once you set the 'singleSelect' property to true, you can only select one single row. Please look at this example http://code.reloado.com/esamik/edit#html,live
Logged
jega
Full Member
***
Posts: 225


View Profile
« Reply #4 on: October 09, 2016, 10:53:12 AM »

Ahh sorry.

I have taken mistake of what was singleselect. Yes it works fine.

What i was looking for was to only have one checkbox selectet at a time.

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!