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

Need to resize SIlverlight Telerik grid

5 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Phil Kestenbaum
Top achievements
Rank 1
Phil Kestenbaum asked on 12 Aug 2010, 02:59 AM

  

Need to resize SIlverlight Telerik grid

 

In the following Silverlight Telerik app,one of the managers uses a 14 inch screen and finds that the app does not display completely.. HOw would I make this app smaller to fit all?

http://img190.imageshack.us/img190/7299/budget2.png

 

the main page code is here:

http://pastebin.com/hAUXv210

 

 

 

5 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 12 Aug 2010, 02:15 PM
Hello Phil Kestenbaum,

You can set RadGridView.HorizontalAlignment and Vertical Alignment to Stretch.
This way RadGridView will stretch to the available size of the window.

In the case of the 14 inch monitor , if RadGridView becomes smaller , it may show scrollbars but still would be usable.

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
Phil Kestenbaum
Top achievements
Rank 1
answered on 12 Aug 2010, 03:22 PM
Where do I make this adjustment? here?

<telerik:RadGridView x:Name="Grd_Data" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" IsReadOnly="True"
                                     AutoGenerateColumns="False" ColumnWidth="150" ShowColumnFooters="True" AlternationCount="2"
                                     AlternateRowBackground="WhiteSmoke" IsFilteringAllowed="False"
                                     ScrollViewer.VerticalScrollBarVisibility="Auto" MaxHeight="600" MinHeight="600"  >
                   
                   
0
Pavel Pavlov
Telerik team
answered on 12 Aug 2010, 03:29 PM
Hi Phil Kestenbaum,

I should be something ike :
<telerik:RadGridView HorizontalAlignment="Stretch" VerticalAlignment="Stretch"...

This way RadGridView will resize with the container.

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
Phil Kestenbaum
Top achievements
Rank 1
answered on 12 Aug 2010, 03:59 PM
HI I put in the code but it doesn't make any changes to the size
<telerik:RadGridView x:Name="Grd_Data" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" IsReadOnly="True"
                                     AutoGenerateColumns="False" ColumnWidth="150" ShowColumnFooters="True" AlternationCount="2"
                                     AlternateRowBackground="WhiteSmoke" IsFilteringAllowed="False"
                                     ScrollViewer.VerticalScrollBarVisibility="Auto" MaxHeight="600" MinHeight="600" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
                   
                 
0
Pavel Pavlov
Telerik team
answered on 13 Aug 2010, 02:54 PM
Hi Phil Kestenbaum,

Ok , lets elaborate further. This code tells the grid to resize with the container. However it seems in your case the container also needs some touch .  Please paste the entire XAML of the page. This way we can see what exactly prevents things to happen.

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
Tags
GridView
Asked by
Phil Kestenbaum
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Phil Kestenbaum
Top achievements
Rank 1
Share this question
or