We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Access width of Scrollbar in GridDataControl

Thread ID:

Created:

Updated:

Platform:

Replies:

97817 Jan 11,2011 10:51 AM Jan 14,2011 05:42 AM WPF 2
loading
Tags: GridControl
Ross Jackson
Asked On January 11, 2011 10:51 AM

Hi

Does anyone know a way to get hold of the width (or height, if horizontal) of a scrollbar when visible in the grid. I can access the computed visiblity:

var scrollViewer = GridDataControl.Model.Views.First().Parent as ScrollViewer;
var isVisible = scrollViewer.ComputedVerticalScrollBarVisibility == Visibility.Visible;

But, I can't find a way to calculate either the size of the grid excluding the scrollbars or the width / height of the scrollbars themselves. All of the properties I would think should provide this information in ScrollViewer are zero (e.g. ScrollableWidth, HorizontalOffset, etc.)

It's a long story, but I'm working on some custom column width logic.

Many thanks


S. Kannan [Syncfusion]
Replied On January 14, 2011 05:40 AM

We are investigating on this. We will let you know the outcome by 01/17/2010.


S. Kannan [Syncfusion]
Replied On January 14, 2011 05:42 AM

Hi Ross,

Thanks for your interest in Syncfusion products.

We are investigating on this. We will let you know the outcome by 01/17/2010.

Please let us know if you need further information.

Regards,
Kannan.S


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;