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

Scrolling units

7 Answers 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 08 Sep 2008, 12:40 PM
Is is possible to change the scrolling behavior of the grid so that it scrolls in a conventional way instead of scrolling to the next record? This causes us problems when we have a record whose height is greater than the height of the grid (you can then never see all of it because the record does not fit into the grid's viewport).

Kind regards,

Will Holley

7 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 09 Sep 2008, 01:34 PM
Hi Will,

If I correctly understand you, you need a "per-pixel" scrolling. Our scrolling and virtualization use 'logical", not 'physical' scrolling. This means that the scrolling unit is an entire row and not a line of pixels.
This is done for performance reasons and physical scroll mode is not planned for the upcoming versions of the grid.

If the lack of such feature is critical for you project, please let me know. In such case  we can try thinking of some workaround  e.g. using nested scrollviewer in the template or some scroll simulation using transforms.

Pavel Pavlov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Will
Top achievements
Rank 1
answered on 09 Sep 2008, 02:03 PM
Hi Pavel,

Thanks for your response. It is critical for us that we have per-pixel scrolling as many of our rows are larger than the viewport and we want to avoid having double vertical scrollbars. Additionally, we very rarely have a large number of rows, so we don't expect performance to be a problem.

If you have a workaround that only involves re-templating that would be great.

Kind regards,

Will
0
Pavel Pavlov
Telerik team
answered on 11 Sep 2008, 11:54 AM
Hi Will,

I am afraid that templating the row cannot change the scrolling behavior of the grid. I was rather thinking of a scroll logic embedded in the row template. You are absolutely right that putting two scrollbars besides is not an elegant solution. Please see the sample project I attached. It provides some scroll functionality without using a scrollbar. I believe it can be integrated in your row template and I hope it will help you solve the problem to some extent.

Regards,
Pavel Pavlov
The Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Will
Top achievements
Rank 1
answered on 23 Sep 2008, 01:59 PM
Thanks Pavel,

Unfortunately this solution is not suitable - we *need* the ability to scroll per pixel. This is related to a similar requirement that we need the grids to have a desired size so that we can have controls which dock to the bottom of it (e.g. putting the grid and a paging bar in a vertical stackpanel). If the grid had a desired size then we could just put the grid in a standard ScrollViewer and the problem would be solved.

Is there any scope for re-templating things to allow this?

Will
0
Hristo Deshev
Telerik team
answered on 25 Sep 2008, 02:58 PM
Hi Will,
 
I've just came up with a possible solution that will allow smooth scrolling through rows with "extraordinary" height. I have added a special case that changes the scrolling behavior when GridViewRow.Height is larger than RadGridView.ViewPortHeight.
We are having our QA guys go over the build at the moment, and if everything runs smooth, we can send it to you in a day or two.


Regards,
Hristo Deshev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Will
Top achievements
Rank 1
answered on 25 Sep 2008, 03:05 PM
Thanks Hristo - is that the same build that Nedyalko sent us in ticket 163610?

Will
0
Nedyalko Nikolov
Telerik team
answered on 29 Sep 2008, 07:08 AM
Hello Will,

Yes, this is the same build.

All the best,
Nedyalko Nikolov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Will
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Will
Top achievements
Rank 1
Hristo Deshev
Telerik team
Nedyalko Nikolov
Telerik team
Share this question
or