EasyUI Forum

General Category => General Discussion => Topic started by: iskandarkbr on November 27, 2017, 03:29:23 AM



Title: scrolling horizontal doesn't work [SOLVED]
Post by: iskandarkbr 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


Title: Re: scrolling horizontal doesn't work
Post by: stworthy on November 28, 2017, 02:03:27 AM
You have to call 'scrollLeft' method to scroll to your cells.
Code:
$(...).scrollLeft(...)


Title: Re: scrolling horizontal doesn't work
Post by: iskandarkbr on November 28, 2017, 07:56:45 PM
great idea, it works. thanks alot sworthy (Y)  :)