Cant get the vertical scroll box to show and content does not size correctly

3 posts, 0 answers
  1. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 12 May 2010 Link to this post

    Hi.

    Just playing around with the gridview control and for some reason I cant get the vertical scroll bar to show. The data is bound using the domaincontext/itemsource. I also find that the grid does not fit the content correctly and when maximized (in blacklight docking control) it shows an additional blank column. Can someone give me some pointers? Code below.

     <bl:DragDockPanel.Content> 
                            <Grid> 
                                  
                                <telerik:GridViewDataControl Name="gridViewDataControl1" ItemsSource="{Binding Data, ElementName=MyData}" Margin="10,20,10,20" 
                                    AutoGenerateColumns="False" IsReadOnly="True" CanUserDeleteRows="False" CanUserInsertRows="False">  
                                    <telerik:GridViewDataControl.Columns> 
                                        <telerik:GridViewDataColumn Header="Finance Id" DataMemberBinding="{Binding fiananceid }" /> 
                                        <telerik:GridViewDataColumn Header="Reference" DataMemberBinding="{Binding reference }" /> 
                                        <telerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding description }" /> 
                                        <telerik:GridViewDataColumn Header="Due Date" DataMemberBinding="{Binding due_date }" /> 
                                        <telerik:GridViewDataColumn Header="Amount" DataMemberBinding="{Binding amount }" /> 
                                        <telerik:GridViewDataColumn Header="Journal Reference" DataMemberBinding="{Binding journal_reference }" /> 
                                    </telerik:GridViewDataControl.Columns> 
                                </telerik:GridViewDataControl> 
                                
                            </Grid> 
                        </bl:DragDockPanel.Content> 
                    </bl:DragDockPanel> 
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 12 May 2010 Link to this post

    Hi,

    Most probably the grid is measured with infinity. Can you post more info how the standard Silverlight DataGrid will work in this case?

    Regards,
    Vlad
    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.
  3. DevCraft banner
  4. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 12 May 2010 Link to this post

    The grid is just <grid> which is in a parent grid

     <Grid x:Name="LayoutRoot" > 
     
                <Grid.RowDefinitions> 
                    <RowDefinition Height="140"/>  
                    <RowDefinition  /> 
                </Grid.RowDefinitions> 

    Does this help?
Back to Top