Can I Disable Horizontal Scrollbar?

11 posts, 0 answers
  1. Ryan
    Ryan avatar
    33 posts
    Member since:
    May 2009

    Posted 01 Mar 2010 Link to this post

    Is it possible to disable the horizontal scrollbar? If yes how do I do this?
    (RadPanelBar is bound to a HierarchicalDataTemplate).

  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 01 Mar 2010 Link to this post

    Hi Ryan,

    You can use the attached ScrollViewer property:

    <telerikNavigation:RadPanelBar x:Name="panelBar1"
                    ItemTemplate="{StaticResource MyHierarchicalItemTemplate}"
                    ScrollViewer.HorizontalScrollBarVisibility="Disabled" />

    Let me know how this works for you.

    All the best,
    Kiril Stanoev
    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. Ryan
    Ryan avatar
    33 posts
    Member since:
    May 2009

    Posted 04 Mar 2010 Link to this post

    Hi Kiril

    I'm afraid this did not work.

    I'm looking at the properties of the ScrollViewer at runtime using Snoop and HorizontalScrollBarVisibility is set to Auto.
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 05 Mar 2010 Link to this post

    Hi Ryan,

    Unfortunately I was not able to reproduce the issue. Please find attached my sample project. Could you please have a look at it and let me know if I am missing something. Also, if you manage to reproduce the issue, could you please let me know the exact steps. I'd be glad to further assist you.

    Sincerely yours,
    Kiril Stanoev
    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. Peter Chapman
    Peter Chapman avatar
    17 posts
    Member since:
    May 2010

    Posted 17 Aug 2010 Link to this post

    I've got this problem too. I agree the sample project works. It's not so happy in real world scenarios though.

    Here's what happens to me:

    1) in blend, select the RadPanelBar, set the horizontal and vertical scroll bar visibility to 'disabled'
    2) see that blend has updated the xaml correctly.
    3) click off the control, and back on to it.
    4) see that the properties inspector shows the values as 'Auto' even though the xaml still shows 'disabled'

    ... and snoop shows the values as 'Auto' at runtime.

    Hope this helps.

    Pete
  7. Peter Chapman
    Peter Chapman avatar
    17 posts
    Member since:
    May 2010

    Posted 17 Aug 2010 Link to this post

    If anybody cares, i've got round this limitation by removing the ScrollViewer from the RadPanelBar by defining a template and removing it explicitly. Notably, setting the visibility of the scroll bars on the ScrollViewer in the template directly also had no effect.

    ta 
  8. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 20 Aug 2010 Link to this post

    Hello gyus,

    We still can't reproduce this issue. Therefore I wanted to ask you what is the version of the RadControls you are using and also what is the version of Blend?

    Thank you in advance.

    Kind regards,
    Tina Stancheva
    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
  9. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 20 Aug 2010 Link to this post

    Hello guys,

    We still can't reproduce this issue. Therefore I wanted to ask you what is the version of the RadControls you are using and also what is the version of Blend?

    Thank you in advance.

    Kind regards,
    Tina Stancheva
    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
  10. Peter Chapman
    Peter Chapman avatar
    17 posts
    Member since:
    May 2010

    Posted 20 Aug 2010 Link to this post

    Hi,

    I am using 3.0.1927 of blend, and the telerik dll's are reporting 2010.1.422.35.

    ta
  11. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 25 Aug 2010 Link to this post

    Hi Peter Chapman,

    Can you please take a look at this video and let me know if I am missing something?

    Thank you in advance.

    Best wishes,
    Tina Stancheva
    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
  12. Peter Chapman
    Peter Chapman avatar
    17 posts
    Member since:
    May 2010

    Posted 26 Aug 2010 Link to this post

    Hi Tina,

    Thanks for the video. It does show a sample where the control is working correctly.

    Real world use of this control is pretty far away from your simple example, and there may have been any number of other factors. If memory serves, my use was a rad panel nested inside a rad panel, in a rad expander. The inner rad panel was bound to a set of hierarchical data templates which I varied using a template selector. The Xaml was all specified in resource dictionaries, and I would have had both visual studio and blend open at the same time. 

    The problem did exist at runtime though, which leads me away from thinking it was a problem with the IDE. Snoop told me the values for the scrollbar visibility actually being applied were different to those in the Xaml.

    My code has moved on quite a long way and and I've not got time to roll it back to the exact scenario. I  am aware how unhelpful this is as a bug report! I'm happy for you to leave this, and if I find it happening again I will try to provide more information.

    thanks
    Pete
Back to Top
UI for WPF is Visual Studio 2017 Ready