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

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

2 Answers 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
madladuk
Top achievements
Rank 2
madladuk asked on 12 May 2010, 11:56 AM
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 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 May 2010, 12:12 PM
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.
0
madladuk
Top achievements
Rank 2
answered on 12 May 2010, 12:15 PM
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?
Tags
GridView
Asked by
madladuk
Top achievements
Rank 2
Answers by
Vlad
Telerik team
madladuk
Top achievements
Rank 2
Share this question
or