Hi
I'm using Infragistics 12.2.20122.2202.
In our application, customer has a xamGrid with some columns set as Fixed to the Left.
Rest of the columns are non fixed, thus their are scrollable by horizontal scrollbar.
The issue poped up, that in some cases, application window is just too small to show at least 1 non-fixed column (so that all user can see are those fixed one).
When this is the case, horizontal scrollbar just doesn't work.There is not way for a user to scroll to se non-fixed columns (except from resizing the application or hiding some of the fixed columns).
Now, as much as I understand the background and technical feature "Fixed column", I can imagine that scenario that I just described might be the problem.
I know that there is no way to deal with this situation, but I'm asking coz maybe you had such issue before and can deal with this gracefully ?
Hi Lukasz,
I'm looking into what can be done to alleviate this behavior that your seeing when the window is small enough to where only the fixed columns are visible. I will get back to you shortly.
Thank you Rob.
I'm looking forward for the feedback.
I believe I've come up with a solution you can use so that you're not stuck with an unscrollable grid when the size is smaller than the size of the fixed columns. The idea I implemented was to place the grid inside a ScrollViewer once the size became small enough. During this transition I gave the grid a specific Width and Height so that you would be able to scroll back over and view the non-fixed columns. This also allows for virtualization to continue working as intended.
There were some usability issues with doing this however. Once placed in the scrollviewer, the user could indeed scroll to the right to view the non-fixed columns, however, because the horizontal scrollbar for the non-fixed columns visually stretched across fixed and non-fixed columns it was clunky to use. You had to scroll the non-fixed columns scrollbar a bit to the right, then scroll the entire grid scrollbar to the right, alternating between scrollbars until you could see the non-fixed columns. It's hard to explain but you can see what I'm talking about in the attached sample if you comment out the code in Grid_ColumnFixedStateChanged inside the behavior.
To resolve this I took a look at the MS DataGrid. They move the horizontal scrollbar so that it appears under the scrollable columns. Doing this meant that if I placed the grid inside a scrollviewer it would remain easy to use because the column scrollbar is easily accessible. Take a look at the sample and let me know if you have any questions on it.
Hi Rob
First, thank you for this sample - it's quite impressice work you've done.
Frankly I was expecting that Infragistics, you guys .. have found this case in the past and have some .. lets say - best practices.
What you wrote is off course some kind of workaround, but still it needs carefull improvements (like resizing the application handling and so on).
IOW: I'm gratefull for this, yet I was expecting something different (if you know what I mean).
Rob, so the outcome is that there is no such "best deal" to work this out - I need to manage this by my own, just like you did. right?
I'm not sure if there is a best practice for this kind of scenario. I'd say that your best option would be to not allow the grid to ever be sized that small or put a restriction on the number of fixed columns. If none of these are options then the next best thing would be to compensate for it which is what the behavior I wrote tries to do.
I do want to let you know that I've created a private case for you for the purpose of linking it to a development issue I logged about this (ID # 154639). We'll be able to get engineering's opinion on this matter this way. The case # is CAS-124468-F9W3Z0 and you can view it here: https://ko.infragistics.com/my-account/support-activity