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

Disable Horizontal ScrollBar in Content Area of Outlook bar

3 Answers 112 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Ganesh Jagdale
Top achievements
Rank 1
Ganesh Jagdale asked on 13 Feb 2010, 10:43 AM
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

3 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 16 Feb 2010, 03:56 PM
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.
0
Ganesh Jagdale
Top achievements
Rank 1
answered on 17 Feb 2010, 10:36 AM
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
0
Kiril Stanoev
Telerik team
answered on 17 Feb 2010, 02:58 PM
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.
Tags
OutlookBar
Asked by
Ganesh Jagdale
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Ganesh Jagdale
Top achievements
Rank 1
Share this question
or