Author Topic: Set First Visible Row  (Read 3655 times)

sidads

  • Newbie
  • *
  • Posts: 11
    • View Profile
Set First Visible Row
« on: December 04, 2013, 08:31:10 pm »

Hello,

I have a grid with 20 rows with a vertical scroll bar and of which first 1-10 rows are visible but say I will scroll down to row 15, select it and do something then refresh the Grid, then Grid goes back to scroll from first row but instead can I set the grid to show the 15th row as the first visible row or make grid automatically scroll to 15th row to make it visible.

Please advise.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: Set First Visible Row
« Reply #1 on: December 05, 2013, 08:19:13 pm »
You can scroll the rows using

Code: [Select]
pqGrid("bringRowIntoView",{rowIndxPage:15});

You may read through this post for details:

http://paramquery.com/forum/index.php?topic=318.0

sidads

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Set First Visible Row
« Reply #2 on: December 06, 2013, 03:33:47 pm »

Thank you very much, works like charm.