Author Topic: How to scoll to given value?  (Read 2609 times)

[email protected]

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 30
    • View Profile
How to scoll to given value?
« on: December 14, 2014, 01:02:46 pm »
Hello,

I have a grid with primary key column, having multiple pages. Am I able to programatically select proper page and scroll to proper row on there when I know the key value?

Any help appreciated.

Jan

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to scoll to given value?
« Reply #1 on: December 15, 2014, 03:35:03 pm »
First you have to find rowIndx of the row having given primary key value by iterating over the rows in dataModel.data

Then you can use these methods to scroll to that particular page and row.

http://paramquery.com/pro/api#method-goToPage

http://paramquery.com/pro/api#method-scrollRow

[email protected]

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: How to scoll to given value?
« Reply #2 on: December 17, 2014, 01:36:50 am »
Thanks, it helped.