Scrollbar Property Issue

What might cause the GridOfficeScrollbar property to change itself? I have it set to None but it occasionally changes to Office2016. Last night when I closed the project it was set to None. But when I opened the project this morning it again had changed to Office2016. It does this at random times for no reason apparent to me. It happened 3 times yesterday while I was working on the project. Ideas?

5 Replies

AR Arulpriya Ramalingam Syncfusion Team April 2, 2018 12:31 PM UTC

Hi Alan, 
 
Thanks for contacting Syncfusion support. 
 
We have analyzed all the possible cases to reproduce the issue at our end. We suspect that the issue might be occurred due to resetting the GridVisualStyle theme for the grid after setting the GridOfficeScrollBars for the grid. As per our grid current support, the theme settings will reset all the visual settings and applies the default settings when the theme is changed. So, we would suggest you, to set the GridOfficeScrollBars as None after setting the GridVisualStyles. Moreover, we are unclear of the use case since it occurs randomly (as you mentioned). So, please confirm the below details that will be more helpful for us to provide the solution, 
 
  • Ensure that the GridOfficeScrollBars is enabled once in your code part.
  • Confirm us that whether you are using the GridOfficeScrollBars or Model.Options.GridScrollBars.
  • Refer to the attached sample and let us, if we missed anything from your customization which causes the issue.
 
 
Regards, 
Arulpriya 



AB Alan Burkhart April 2, 2018 04:08 PM UTC

This morning the scrollbars changed just by resizing the form in the designer (by dragging it). The change occurred as soon as I released the mouse button (screenshots in attached zip file). I changed it back and it hasn't happened again (not yet anyway). Sometimes after changing some code and then returning to the designer and it redraws (as often happens in VS - I assume this is normal behavior), the scrollbars change. At present I'm resetting it via code in the form's Load event handler:
grid.GridOfficeScrollBars = OfficeScrollBars.None

I haven't used
Model.Options.GridScrollBars in code. The only changes I make to the grid in code are with a few images and highlighting some cells via their BackColor.

In the designer I have the following settings:
GridVisualStyles = SystemTheme
GridOfficeScrollbars = None
ThemesEnabled = False

This has never occurred at runtime. When it happens it's always in the designer, and the behavior is inconsistent. For example I tried resizing the form a few times after the change occurred this morning and it hasn't happened again. The change would have to be in response to something, but at this point I have no clue what it might be. I haven't made any other changes to the grid.



Attachment: GridScrollbars_Designer_3d0a9e9f.zip


AR Arulpriya Ramalingam Syncfusion Team April 5, 2018 08:57 AM UTC

Hi Alan, 
 
Sorry for the delayed response. 
 
We have analyzed the reported use case at our end and confirmed that the scenario is a defect. So, we logged a bug report and the fix for the issue will be included in our upcoming release. 
 
Please let us know, if you have any other queries. 
 
Regards, 
Arulpriya 



AB Alan Burkhart April 10, 2018 01:32 AM UTC

Since your reply, I have added a TabControlAdv to the form containing the GridControl. It has also at times changed properties I set in the designer. In this case it's the colors of the tab control's back panel and the tabs themselves. They revert back to the default back-colors for the chosen style (VS2005Style). I'm dealing with it a similar way to how I'm handling the GridControl issue, by setting the colors in the form's Load event. Yesterday I set the tab control's colors in the designer and saved the project, then closed it. Today when I reopened it the colors reverted back to default with no action on my part. Screen shot in attached zip file.

Attachment: SimilarIssueWithTabControlAdv_13764435.zip


AR Arulpriya Ramalingam Syncfusion Team April 10, 2018 12:46 PM UTC

Hi Alan, 
 
Thanks for the update. 
 
We have analyzed the reported scenario at our end and the reported issue occurred due to the code generation of Office2016ScrollerBarScheme at design time. The root cause for both the reported issues is same. So, we will fix the issue for both cases and the fix will be included in our upcoming releases. 
 
Please let us know, if you have any other queries. 
 
Regards, 
Arulpriya 


Loader.
Up arrow icon