7 Answers, 1 is accepted
0

SweNz
Top achievements
Rank 1
answered on 16 Jan 2011, 07:32 AM
Hi ronald ,
do not define any weight or height. Gridview size will adjust by window size or its layout automatically
hope this help happy sunday :)
SweNz
do not define any weight or height. Gridview size will adjust by window size or its layout automatically
hope this help happy sunday :)
SweNz
0

ronald
Top achievements
Rank 1
answered on 16 Jan 2011, 11:32 PM
Hi,
thanks for the info.
My grid is in the raddocking and the raddcoking is in the dockpanel. Now if the user expands the window the docking and dockpanel does not expand automatically. How can I make those controls auto-resize?
thanks
thanks for the info.
My grid is in the raddocking and the raddcoking is in the dockpanel. Now if the user expands the window the docking and dockpanel does not expand automatically. How can I make those controls auto-resize?
thanks
0
Accepted
Hello Ronald,
Vanya Pavlova
the Telerik team
RadGridView is auto-sized by default, which means that its default Width/Height properties are set to Auto. In addition to this if you need to have column resizing enabled just set the ColumnWidth property of RadGridView to star, or set the Width property of last column to star.
Please refer to the following snippet:
<
DockPanel
x:Name
=
"LayoutRoot"
DataContext
=
"{Binding Source={StaticResource SampleDataSource}}"
>
<
telerik:RadDocking
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Description"
>
<
telerik:RadGridView
ColumnWidth
=
"*"
ItemsSource
=
"{Binding Collection}"
AutoGenerateColumns
=
"True"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
</
telerik:RadDocking
>
</
DockPanel
>
Best wishes,
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0

ronald
Top achievements
Rank 1
answered on 18 Jan 2011, 12:21 AM
Hi,
Please see attached for the overall structure of the controls. Hope the image will explain alot better of what I'm trying to achieve.
thanks
Please see attached for the overall structure of the controls. Hope the image will explain alot better of what I'm trying to achieve.
thanks
0
Hello Ronald,
Vanya Pavlova
the Telerik team
Can you please try to implement the approach shown below in my previous reply, based on your custom scenario and let me know with which part of the solution you encounter any difficulties.
I would be glad if I can assist you further.
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0

ronald
Top achievements
Rank 1
answered on 18 Jan 2011, 11:29 PM
I did try the sample you suggested but it didn't work.
It does not auto-resize the frame and the dockpanel so obviously the grid will not grow or shrink automatically.
It does not auto-resize the frame and the dockpanel so obviously the grid will not grow or shrink automatically.
0
Hello Ronald,
Vanya Pavlova
the Telerik team
I believe that your case is specific and you may send us small application via support ticket with this layout and we would be able to provide you with an appropriate solution.
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>