ABECON Groep BV
Top achievements
Rank 1
ABECON Groep BV
asked on 18 May 2010, 08:26 AM
Hello,
I've got a question which i couldnt find a answer to in the forums.
When i click a row in the datagrid the horizontal scrollbar jumps back to the start.
When i click the rowindicator to select the row, the scrollbar jumps to the firstcolumn,
I use scrollintoview(object, column[hidden]) to get the result i like, but the rowindicator click still causes a scroll to the first column.
Do you have a solution or a way to set the scrollbarposition?
Regards,
Marcel de Groot
I've got a question which i couldnt find a answer to in the forums.
When i click a row in the datagrid the horizontal scrollbar jumps back to the start.
When i click the rowindicator to select the row, the scrollbar jumps to the firstcolumn,
I use scrollintoview(object, column[hidden]) to get the result i like, but the rowindicator click still causes a scroll to the first column.
Do you have a solution or a way to set the scrollbarposition?
Regards,
Marcel de Groot
5 Answers, 1 is accepted
0
Hello ABECON Groep BV,
On your question about a way to set the scrollbar position -
A way to scroll to a specific horizontal position would be :
To have access to the ChildrenOfType extension method you will need to add a :
using Telerik.Windows.Controls
I hope that helps.
Best wishes,
Pavel Pavlov
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.
On your question about a way to set the scrollbar position -
A way to scroll to a specific horizontal position would be :
var viewer =
this
.RadGridView1.ChildrenOfType < GridViewScrollViewer>()[0];
viewer.ScrollToHorizontalOffset(50);
To have access to the ChildrenOfType extension method you will need to add a :
using Telerik.Windows.Controls
I hope that helps.
Best wishes,
Pavel Pavlov
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
ABECON Groep BV
Top achievements
Rank 1
answered on 20 May 2010, 01:42 PM
Thanks for your reply,
But it doesn't seem to work.
The action we want is select row and scroll into view, but keep the horizontal scroll position.
The set of the scrollbar position doen't seem to work. But thats because we remember the position at the wrong place.
We want it on BeforeRowClick. Is there a way to accomplish that?
Marcel de Groot
Abecon
But it doesn't seem to work.
The action we want is select row and scroll into view, but keep the horizontal scroll position.
The set of the scrollbar position doen't seem to work. But thats because we remember the position at the wrong place.
We want it on BeforeRowClick. Is there a way to accomplish that?
Marcel de Groot
Abecon
0
Hi ABECON Groep BV,
The approach demonstrated in the attached project is as close as I could get .
It involves caching of the current horizontal scroll position and reverting to it when necessary.
Greetings,
Pavel Pavlov
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.
The approach demonstrated in the attached project is as close as I could get .
It involves caching of the current horizontal scroll position and reverting to it when necessary.
Greetings,
Pavel Pavlov
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
ABECON Groep BV
Top achievements
Rank 1
answered on 25 May 2010, 10:19 AM
Thanks for your quick reply
Indeed very close :)
With this solution it stays in view but the scrolling is a bit off.
Hope this gets some attention in a next release of the gridview.
Indeed very close :)
With this solution it stays in view but the scrolling is a bit off.
Hope this gets some attention in a next release of the gridview.
0
Hello ABECON Groep BV,
We are alerady addressing the issue. Sorry for the inconvenience caused.
All the best,
Pavel Pavlov
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.
We are alerady addressing the issue. Sorry for the inconvenience caused.
All the best,
Pavel Pavlov
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.