Grid scrollbar now working

6 posts, 0 answers
  1. Avi
    Avi avatar
    25 posts
    Member since:
    Oct 2010

    Posted 23 Dec 2010 Link to this post

    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 ?

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 Dec 2010 Link to this post

    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
  3. Avi
    Avi avatar
    25 posts
    Member since:
    Oct 2010

    Posted 23 Dec 2010 Link to this post

    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

  4. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 05 Jan 2011 Link to this post

    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
  5. Steven
    Steven avatar
    35 posts
    Member since:
    Apr 2011

    Posted 10 May 2011 Link to this post

    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
  6. Viswanth
    Viswanth avatar
    1 posts
    Member since:
    Feb 2012

    Posted 22 Feb 2012 Link to this post

    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

Back to Top