Disable Horizontal ScrollBar in Content Area of Outlook bar

4 posts, 0 answers
  1. Ganesh Jagdale
    Ganesh Jagdale avatar
    69 posts
    Member since:
    Dec 2009

    Posted 13 Feb 2010 Link to this post

    Hi Telerik,

    Thanks for providing Such beatifull control..

    I am using it in my project. I am facing small problem that is How I am  disable Horizontal Scrollbar in Content Area  of  Outlook bar.
    I see all related  available property but not   successfull. 


    Pls help me out..

    Thanks and Regards
    Ganesh
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 16 Feb 2010 Link to this post

    Hi Ganesh,

    Unfortunately I am not able to reproduce the issue you describe. What exactly do you refer to by saying "Horizontal ScrollBar"? Is it the element shown on the picture bellow?

    If this is the element you are trying to disable, then you will need to use the HorizontalSplitterStyle property of RadOutlookBar.

    <telerikNavigation:RadOutlookBar x:Name="outlookBar1" Width="200" Height="400">
        <telerikNavigation:RadOutlookBar.HorizontalSplitterStyle>
            <Style TargetType="Thumb">
                <Setter Property="IsEnabled" Value="False" />
                <Setter Property="Cursor" Value="SizeNS" />
                <Setter Property="Height" Value="10" />
            </Style>
        </telerikNavigation:RadOutlookBar.HorizontalSplitterStyle>
    </telerikNavigation:RadOutlookBar>

    If this is not the element you have in mind, could you please elaborate a little bit more on which element you have in mind. The content area of RadOutlookBar does not provide a scrollbar out of the box. Probably, some item that is in the content area shows its scrollbar.

    Let us know how it goes and we will be more than happy to assist you further.

    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.
  3. DevCraft banner
  4. Ganesh Jagdale
    Ganesh Jagdale avatar
    69 posts
    Member since:
    Dec 2009

    Posted 17 Feb 2010 Link to this post

    Hi  Kiril Stanoev,
     
    Thanks a lot for replying,
     
    I have added TreeView at runtime in content area of RadOutlook bar.
     May be because of treeview Horizontal scroll bar comes up when Outlook bar width is less than required width for tree.
    But how I am disabling that Horizontal srollbar of treeView?
     when I write like this

    navigationTree.ScrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled;


    This ScrollViewer is null so I got NullReferenceException..
    It means ScrollViewer is not because of TreeView.
    So from where it comes.

    Pls Help me out..

    Thanks
     Ganesh
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 17 Feb 2010 Link to this post

    Hi Ganesh,

    In this case you will have to wrap the call to the TreeView's ScrollViewer in Dispatcher.

    Dispatcher.BeginInvoke(() =>
    {
        treeView.ScrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled;
    });

    Please find attached a sample project demonstrating this functionality. Let me know if you have further problems on the topic.

    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.
Back to Top