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

Scaling of RadGridView Content

3 Answers 178 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ClausDC
Top achievements
Rank 1
Iron
Iron
ClausDC asked on 06 May 2010, 09:12 AM
I can visually scale the whole RadGridView control if I set the "LayoutTransform" property of RadGridView accordingly.

The problem with this method is that it scales everything including scrollbars on the sides, the headercell filter menus and so on.

Now is there a way to scale only the content of the RadGridView i. e. all cells (or rows if you will) including the header cells but excluding everything else (scrollbars, filter menus etc.), kinda like you can set LayoutTransform of the GridViewGroupPanel property and it changes only the group panel.

I have something in mind like in Microsoft Excel 2007 where you can zoom a whole table but all controls and menus remain unchanged.

I tried using ".ChildrenOfType<GridViewHeaderRow>()" and setting LayoutTransform to all rows but the HeaderRow remains unchanged and I get weird behaviour from other visual elements of the GridView. When I additionally set LayoutTransform of HeaderRow the filter menus are changed as well - what I do not want, and I get even weirder behaviour because HeaderRow and content rows are out of sync in their display.

Is there some way to do what I want to accomplish here?


3 Answers, 1 is accepted

Sort by
0
ClausDC
Top achievements
Rank 1
Iron
Iron
answered on 06 May 2010, 09:51 AM
Nevermind, I found a way.

I simply go the reverse way and scale the menus and scrollbars back after scaling the complete RadGridView.
I use the aforementioned "ChildrenOfType<T>()" Method to get these sub-controls.

This works reasonably well.

Still it would be nice if there was a property like "GridViewGroupPanel" for the GridView content so it would be easy to only modify the content excluding menus, scrollbars etc.
0
Andi
Top achievements
Rank 2
answered on 10 Sep 2010, 11:14 AM
Does meanwhile a solution exist?
Especially for the Scrollbars it would be very nice.
0
Stefan Dobrev
Telerik team
answered on 16 Sep 2010, 08:20 AM
Hi Andi,

There is currently no easy way this can be implemented. One can examine the visual tree of the grid and change the LayoutTransform of the GridViewVirtualizingPanel in a custom Style for example. However this solution brings other issues with it once it is implemented.

Hope this helps,
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
ClausDC
Top achievements
Rank 1
Iron
Iron
Answers by
ClausDC
Top achievements
Rank 1
Iron
Iron
Andi
Top achievements
Rank 2
Stefan Dobrev
Telerik team
Share this question
or