[ 3 posts ]

yamashita

  • Username: ke-yamashita
  • Joined: Sun Jan 30, 2011 10:17 pm
  • Posts: 12
  • Offline
  • Profile
Tags:

How to Scroll by java script program in the scrolling DataTa

Post Posted: Wed Jun 15, 2011 4:54 pm
+0-
Hello,
My application use scrolling DataTable which have a feature of keyboard operation.
My scrolling DataTable is "single cell mode " and moving a cell by pressing arrow key.
A continuously Pressing keyboard occurs focused cell protrude away from viewing area of the DataTable.
I want scrolling automatically when active cell moved by keyboard handling .
I couldn't find any property for the scrolling.
Does the scrolling DataTableown that?

Alberto Santini

YUI Contributor

  • Offline
  • Profile

Re: How to Scroll by java script program in the scrolling Da

Post Posted: Thu Jun 16, 2011 12:53 am
+0-
Hello yamashita.

It seems I didn't found any built-in solution.

See
viewtopic.php?f=90&t=6155

A quick workaround may be:

myDataTable.subscribe("cellSelectEvent", function (oArgs) {
this.scrollTo(oArgs.record);
});

Hope that helps,
IceBox

yamashita

  • Username: ke-yamashita
  • Joined: Sun Jan 30, 2011 10:17 pm
  • Posts: 12
  • Offline
  • Profile
Tags:

Re: How to Scroll by java script program in the scrolling Da

Post Posted: Fri Jun 17, 2011 3:28 am
+0-
Alberto,
Thank you for your reply.

Unfortunately scrollTo method didn't work on my environment.
My scrolling data table has XY scroll bar ,
also my code is :
this.scrollTo(el.column);
this function finish without any error or exception.

Can you advise me if I try over the "built-in solution"
regards.
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum