EasyUI Forum
March 28, 2024, 11:41:07 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: How to override shift select with custom behaviour  (Read 5489 times)
kriyazhao
Newbie
*
Posts: 2


View Profile
« on: January 24, 2017, 08:34:21 AM »

We have a scenario to shift select large amount of files, since we've subscribed onSelect event, shift select will trigger the event thousands of times, which slows selection down dramatically... I wonder how to override the shift select source code with my customized behaviour?

For example, when I select 1000 files, I don't want to fire onSelect event for the first 999 files, and only fire one event for the final 1000th file, so that it speeds up the selection process.

Could you please provide a patch file to show the way to override shift-select? Thank you very much!
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 on: January 25, 2017, 01:10:38 AM »

Please download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.5.1-patch.zip. And then set the 'scrollOnSelect' property to false.

Code:
$('#tg').datagrid({
  singleSelect: false,
  ctrlSelect: true,
  checkOnSelect: false,
  scrollOnSelect: false
});
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!