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?
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
0
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.
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
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.
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
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.
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.
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
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.
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.