This is a migrated thread and some comments may be shown as answers.

how can I get the position of a row from the scrollbar?

7 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zinc Deng
Top achievements
Rank 1
Zinc Deng asked on 09 Mar 2010, 09:09 AM
how can I get the position of a row from the scrollbar?
 My highlight will jump down sometimes, which will cause the page change. If the highlight jumps down from a row to another row on the other page, how can I get that row's position based on the scrollbar?

7 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 11 Mar 2010, 11:37 AM
Hello Zinc,

It is unclear from your description what exactly you are trying to achieve. Can you share more details about your problem? What are you highlighting? What are these pages that you are referring?

Kind regards,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Zinc Deng
Top achievements
Rank 1
answered on 12 Mar 2010, 03:53 AM

For example, I have 10 records, but the gridview only shows 5 in one page and then there will be a vertical scrollbar

When the 1st record is selected, it will be highlighted
After a while, the highlight will automatically go to the 2nd record and then the 3rd and so on...
The first 5 records can show properly but not the 6th, because the grid view only shows 5 records in one page and it does not move down automatically

I want to show my 6th play when the highlight moves onto it. How can I do that?

0
Stefan Dobrev
Telerik team
answered on 12 Mar 2010, 04:08 PM
Hi Zinc,

You can use ScrollIntoView(...) to scroll a particular row into the current view port.

Greetings,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Zinc Deng
Top achievements
Rank 1
answered on 15 Mar 2010, 09:41 AM

Thanks for your reply

GridView1.ScrollIntoView(GridView1.SelectedItem); can work properly

But if I group GridView ,the vertical scrollbar cannot work properly:(

0
Stefan Dobrev
Telerik team
answered on 15 Mar 2010, 06:44 PM
Hi Zinc,

Can you share more detail what exactly is not working when RadGridView is grouped?

Kind regards,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Zinc Deng
Top achievements
Rank 1
answered on 16 Mar 2010, 03:01 AM
It's about the vertical scrollbar
Before I group it, the vertical scrollbar of GridView1.ScrollIntoView(GridView1.SelectedItem); gridview can scroll with current selection. But after I group it, the scrollbar cannot automatically scroll anymore.
0
Stefan Dobrev
Telerik team
answered on 17 Mar 2010, 11:47 AM
Hi Zinc,

Are you groups expanded? Can you try with ScrollIntoViewAsync() method when RadGridView is grouped?

Regards,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Zinc Deng
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Zinc Deng
Top achievements
Rank 1
Share this question
or