Horizontal Scrollbar not responding to the change in the grid size(width)

Hi,

We have multiple GridDataControls inside an ItemsControl. Since we have multiple GridDataControls, we don't want each of them to have their own horizontal scroll bar so we set the visibility of the horizontal scroll-bars for each GridDataControl to be hidden. And we have a ScrollViewer defined as a ControlTemplate for an ItemsControl. Since we hide the Horizontal Scroll bar, it seems the event (whatever event responsible for updating scrollbar) doesn't bubble up to the outmost ScrollViewer when we change the width of the grid.
If we set the visibility of the HorizontalScrollBar to visible, then works fine.
So, is there any way get around this issue.

Thanks,
Ohm


3 Replies

RG Rajasekar G Syncfusion Team December 26, 2012 10:50 AM UTC

Hi Ohm, 

Sorry for the inconvenience caused. We have tested the reported issue in different scenario but we are unable to reproduce the issue. Could you please check the below sample and video? 

Sample: GridDataControl_ItemsControl.zip

Video: VideoScroll.zip

We suspect you are using our grid in some other scenario, So If possible could you please modify our sample and revert us with replication procedure, that would be very helpful to resolve your problem earlier.

Please let know if you have any queries.

Thanks,

Rajasekar


OH Ohm April 2, 2013 06:17 PM UTC

I have made changes to the project you uploaded to reflect the scenario I have. When you increase the last column width beyond the screen (grid splitter in my case), I was expecting scroll viewer to adjust itself to display whole grid, but it doesn't. I was looking for the similar behavior as you would see if grid's horizontal scroll viewer was not hidden for individual grid.


ScrollbarGrid not event_e6d94d65.zip


RG Rajasekar G Syncfusion Team June 21, 2013 05:58 AM UTC

Hi  Ohm,

Sorry for the inconvenience caused.

We regret to let you know that we are unable to update the properties of ScrollViewer present in the ItemsControl based on the GridDataVisibleColumn width(updated by column resizing) of GridDataControl  and it is the default behavior in GridDataControl  . So we would request you to use the default ScrollViewer present  in GridDataControl.

Please let us know if you have any questions.

Regards,

Rajasekar


Loader.
Up arrow icon