Good Morning,
i am currently facing a problem with the elementcombination UltraWinGrid and UltraExplorerBar.
Whenever I Scroll down a little faster my UltraGrid "loses" it's normal postiton and suddenly I have a faulty display of the elements. The Problems can be solved by scrolling up slowly again - it feels like the controls are resetting themselves then.
Has anybody ever encountered the same problem or an idea how to fix that?
Any help would be appreciated.
Greetings,
andre
Hi Andre,
I'm not sure I understand what you are describing.
What do you mean by "a little faster?" A little faster than what? And what does scrolling in the grid have to do with UltraExplorerBar?
Hi Mike,
sorry for my bad description earlier.
I use the ExplorerBar with the ControlContainer-Style and in that ControlContainer I have UltraGrids.
I will show you with a screenshot what I mean. This is how it's supposed to look:
And when I drag down the Scrollbar really fast I get this:
Normally there is another ExplorerBar with another Grid but as you can see I still see the things from the Top and in between the Grid that's supposed to be on the bottom. That's what I meant by faulty display. If you single click your way down or drag down the Scrollbar in a moderate speed I don't encounter this Problem.
I hope this explains it a little bit better.
andre.
So just to be sure I understand, you are scrolling down the ExplorerBar and this is causing the group headers in some of the ExplorerBar groups to display what looks like some part of some other grid.
Is that right?
It's a little hard to see what's going on here with the bottom of the images cut off. I'm also a bit puzzled as to why scrolling the ExplorerBar doesn't seem to be having an effect on the positions of the groups or the grid or anything else. Maybe I am still confused and the scrollbar is not the scrollbar that I think it is.
Is there any chance you can post a small sample project which demonstrates this behavior so I can check it out?
thanks for the reply. I will try to create a Testapp with the behaviour. The scrollbar of the ExplorerBar most outside of that control. And like I said, if you scroll step by step you don't experience that behaviour but only if you drag the scrollbar fast down. Sometimes you get a similar behaviour when you jump from bottom to top (or vice versa) with the EnsureGroupInView() function of the ExplorerBar.
sorry for the late answer. We finally fixed the issue. As it looks now the Grid doesn't cause the problem. It's the ExplorerBar when it's dynamically added in at runtime. We created a workaround which solves the matter for us.
Your offering to help was greatly appreciated but I couldn't reproduce the error in a Testapp, so sorry for the delay.
Anyway if anybody ever runs into the same issue here's a hint how you might work around the problem:We're setting the ScrollPosition of the ExplorerBar ourselves. What we did now is to simply to check which ExplorerBarGroup is currently in view with the Property "IsInView", If it returns true we call the EnsureGroupHeaderInView() - function on that ExplorerBarGroup and then set the ScrollPosition.
Somehow miraculous we no problems anymore now.
Thanks for the help again. I think we can consider this thread as solved.
Greetings
It's hard to tell, but from my limited comprehension of the exact situation, it sounds like there might be some sort of regioning problem here. But it's very tough to say without a sample to test with.