ScrollViewer and RadGridView

4 posts, 0 answers
  1. Leonard
    Leonard avatar
    23 posts
    Member since:
    Jan 2013

    Posted 25 Jun 2013 Link to this post

    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


  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 26 Jun 2013 Link to this post

    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 >>
  3. Dominique BOYER
    Dominique BOYER avatar
    3 posts
    Member since:
    Dec 2009

    Posted 26 Jun 2013 Link to this post

    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
  4. Leonard
    Leonard avatar
    23 posts
    Member since:
    Jan 2013

    Posted 02 Jul 2013 Link to this post

    Thanks for your responses, 
    but I used the SizeChanged method and adjust the width of RadGridView.


Back to Top