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

ScrollViewer and RadGridView

3 Answers 237 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Leonard
Top achievements
Rank 1
Leonard asked on 25 Jun 2013, 02:12 PM
Good morning.

I have a problem with both control.

I have a ScrollViewer and inside i have a GridView, when a column has Width="*" and this causes that width of the grid is too big and not have size of the View.

For Example:

<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" BorderThickness="1,0,1,1" BorderBrush="#d7d7d7" Padding="0">
<telerik:RadGridView  MinHeight="200" 
                                         ItemsSource="{}" Margin="0,13,0,0"  
                                         RowDetailsTemplate="{}" CanUserResizeColumns="False" 
                                         RowDetailsStyle="{}"  
                                         EnableColumnVirtualization="false" EnableRowVirtualization="True"
                                         ShowGroupPanel="False" 
                                         ScrollViewer.HorizontalScrollBarVisibility="Disabled" 
                                         ScrollViewer.VerticalScrollBarVisibility="Disabled">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn  HeaderCellStyle="{DataMemberBinding="{}" Header="NAME" MinWidth="180"  width="*"/>
......


Thanks


3 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 26 Jun 2013, 07:13 AM
Hi Leonard,

Please check this help topic for more information.
 
Regards,
Yordanka
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Dominique BOYER
Top achievements
Rank 1
answered on 26 Jun 2013, 09:34 AM
Hi,

I've exactly the same problem after Telerik controls migration.

I've read the content of the link that Yordanka provide in the previous post, but it didn't help me with Scrollviewer and Column width="*"...

Can you give more details on how to deal with this situation, with example if possible (I really want a Scrollviewer and a column width="*" and I don't care about performance since my grids contains only a few rows and less than 10 columns).

Thanks
0
Leonard
Top achievements
Rank 1
answered on 02 Jul 2013, 03:00 PM
Thanks for your responses, 
but I used the SizeChanged method and adjust the width of RadGridView.


Tags
GridView
Asked by
Leonard
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Dominique BOYER
Top achievements
Rank 1
Leonard
Top achievements
Rank 1
Share this question
or