Showing Horizontal scrollbar

7 posts, 1 answers
  1. Narendra
    Narendra avatar
    25 posts
    Member since:
    Jul 2010

    Posted 09 Aug 2010 Link to this post

    Hi,

    How can show Horizontal scrollbar only on radgridview using property or method?

    Thanks,
    -Narendra
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Aug 2010 Link to this post

    Hi,

     The grid will show the horizontal scrollbar automatically when you have enough columns to scroll.

    Best wishes,
    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. UI for WPF is Visual Studio 2017 Ready
  4. Narendra
    Narendra avatar
    25 posts
    Member since:
    Jul 2010

    Posted 09 Aug 2010 Link to this post

    how can control the horizantal scrool behavior. some times i dont want to show the scrool bar.

    Is there any property which controls the behavior for horizantal scroolbar?

    Thanks,
    -Narendra

  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Aug 2010 Link to this post

    Hello,

     You can use ScrollViewer.HorizontalScrollBarVisibility attached property for the grid. For example:

    <telerik:RadGridView ItemsSource="{Binding}" ScrollViewer.HorizontalScrollBarVisibility="Hidden" />

    Sincerely yours,
    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
  6. Narendra
    Narendra avatar
    25 posts
    Member since:
    Jul 2010

    Posted 09 Aug 2010 Link to this post

    Thanks for the instant response.

    Can you tell me, how can do the same in code behind file i.e. .CS file?

    Thanks,
    -Narendra
  7. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Aug 2010 Link to this post

    Hello ,

    You can set this like any other attached property:

    RadGridView1.SetValue(ScrollViewer.HorizontalScrollBarVisibilityProperty, ScrollBarVisibility.Visible);

    Kind 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
  8. Narendra
    Narendra avatar
    25 posts
    Member since:
    Jul 2010

    Posted 09 Aug 2010 Link to this post

    Thanks, it worked like a magic.
Back to Top
UI for WPF is Visual Studio 2017 Ready