EasyUI Forum
November 06, 2025, 04:37:45 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: datagrid - How can I scoll to a specific column  (Read 9046 times)
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« on: November 14, 2014, 07:28:34 AM »

We have an big datagrid with many rows. But only 2 Rows are editable.
When the user double click on the row we will scroll to the first editable cell to show the user what he can edit.

How can we scoll to a specific cell in an row?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 14, 2014, 08:55:53 AM »

Focusing the editor will make the datagrid auto scroll to that column. After enter the editing mode, please focus on the specified editor.
Logged
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« Reply #2 on: November 17, 2014, 12:59:27 AM »

THX its working.

Code:
var ed = $(this).edatagrid('getEditor',{index:index, field:'testfield'});
$(ed.target).focus(); }
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!