EasyUI Forum
April 18, 2024, 01:13:35 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: scrolling horizontal doesn't work [SOLVED]  (Read 4727 times)
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« on: November 27, 2017, 03:29:23 AM »

i created extend function for my treegrid.
it binds event keydown for treegrid's panel that makes user can press key right (keycode=39) and left (keycode=37) on a row so user can move from columns to next/prev columns.

i didn't set fitcolumns to true, but why the horizontal scrollbar dont move to next column while i press 'right key' neither 'left key'?
so i can see the right column by press keyboard, i have use mouse to scroll it.

any idea to solve it?

PS: i've set fitcolumns to false, but it still doesnt work
« Last Edit: November 28, 2017, 08:23:14 PM by iskandarkbr » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 28, 2017, 02:03:27 AM »

You have to call 'scrollLeft' method to scroll to your cells.
Code:
$(...).scrollLeft(...)
Logged
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« Reply #2 on: November 28, 2017, 07:56:45 PM »

great idea, it works. thanks alot sworthy (Y)  Smiley
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!