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

Grid scrollbar now working

5 Answers 190 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Avi
Top achievements
Rank 1
Avi asked on 23 Dec 2010, 08:44 AM

Hello,

The Vertical Scroll Bar of the grid is now working. Here is the code :

  <telerik:RadGridView x:Name="SearchDepositsGrid"

                             HorizontalAlignment="Stretch"

                             AutoGenerateColumns="false"

                             EnableRowVirtualization="True"

                             HorizontalContentAlignment="Stretch"

                             IsReadOnly="True"

                             ItemsSource="{Binding DepositCollection}"

                             RowDetailsVisibilityMode="Collapsed"

                             RowIndicatorVisibility="Collapsed"

                             ScrollViewer.VerticalScrollBarVisibility="Auto"

                             SelectedItem="{Binding SelectedDeposit, Mode=TwoWay}"

                             SelectionChanged="SearchDepositsGrid_SelectionChanged"

                             ShowGroupPanel="False"

                             Visibility="{Binding HasDepositData, Converter={StaticResource booleanToVisibilityConverter}}">

            <telerik:RadGridView.Columns>

                <telerik:GridViewDataColumn Width="Auto"

                                            DataMemberBinding="{Binding Id, Mode=OneWay}"

                                            Header="PicId"

                                            IsFilterable="True"

                                            IsReadOnly="True"

                                            IsResizable="False"

                                            IsSortable="True"

                                            ShowFieldFilters="False"

                                            TextAlignment="Center" />

            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

 

I am working with 2010.2.924.1040 version.

Any ideas ?

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 23 Dec 2010, 08:49 AM
Hello,

 You can verify if the grid is not measured with infinity height. This can happen if you have assosiated RadGridView with a Grid.Row with Height="Auto" and/or when the grid is inside StackPanel or ScrollViewer.

Regards,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Avi
Top achievements
Rank 1
answered on 23 Dec 2010, 09:10 AM

This is the full code. You writing that it is not working because the grid is inside a stackpanel?

 <StackPanel Visibility="{Binding VersionVisible, Source={StaticResource VersionManager}}">                      
            <telerik:RadGridView x:Name="SearchDepositsGrid" 
                                             HorizontalAlignment="Stretch"
                                             AutoGenerateColumns="false"
                                             EnableRowVirtualization="True"
                                             HorizontalContentAlignment="Stretch"
                                             IsReadOnly="True"
                                             ItemsSource="{Binding DepositCollection}"
                                             RowDetailsVisibilityMode="Collapsed"
                                             RowIndicatorVisibility="Collapsed"
                                             SelectedItem="{Binding SelectedDeposit, Mode=TwoWay}"
                                             SelectionChanged="SearchDepositsGrid_SelectionChanged"
                                             ScrollViewer.VerticalScrollBarVisibility="Auto"
                                             ShowGroupPanel="False"
                                             Visibility="{Binding HasDepositData, Converter={StaticResource booleanToVisibilityConverter}}">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn Width="Auto" 
                                                            DataMemberBinding="{Binding Id, Mode=OneWay}"
                                                            Header="PicId"
                                                            IsFilterable="True"
                                                            IsReadOnly="True"
                                                            IsResizable="False"
                                                            IsSortable="True"
                                                            ShowFieldFilters="False"
                                                            TextAlignment="Center">
                    </telerik:GridViewDataColumn>                  
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>          
        </StackPanel>

What about answering this post ?

http://www.telerik.com/community/forums/silverlight/gridview/grid-scrollbar-now-working.aspx

0
Veselin Vasilev
Telerik team
answered on 05 Jan 2011, 01:31 PM
Hello Avi,

You have placed the RadGridView in StackPanel which measures its children with infinite height.
Please take the gridview out of the stackpanel and try again.
You can also check this help article.

Greetings,
Veselin Vasilev
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Steven
Top achievements
Rank 1
answered on 10 May 2011, 05:29 PM
Good morning,

I have the same problem.

I have a grid with two rows :
                 - A RadGridView with height="*"
                 - A Validation summary

Is there a work arround because I need to have my validation summary below my radGridView.

regards,
S
0
Viswanth
Top achievements
Rank 1
answered on 22 Feb 2012, 10:44 AM

Hi,
here i am having a problem with the Gridview.

Problem is gridview is displaying 5 rows but i am getting gridview row count as 7.

 

 

 

IList<Telerik.WebAii.Controls.Xaml.GridViewRow> rdgrid = gridview.Find.AllByType<Telerik.WebAii.Controls.Xaml.GridViewRow>();

 

 

 

please guide me to resolve this problem.

Thanks,
 Bala

Tags
GridView
Asked by
Avi
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Avi
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Steven
Top achievements
Rank 1
Viswanth
Top achievements
Rank 1
Share this question
or