Hello.
I posted this question as a reply to another thread but thought maybe I should start my own.
My issue is that I have a hierarchical xamgrid with 3 levels. When expanding the grid to the second or third level, the only level that scrolls horizontally is the inner most level. The screenshot below demonstrates the issue. There are several fixed columns to the left of the numeric columns. Also all columns are not resizable.
As you can see only the very last inner level, "Labor" under "0002" scrolled. The other columns in all the other levels did not scroll.
I am using XAMGRID v 10.3.20103.2098. Please let me know if this is fixed in the latest SR, as I don't want to install it unless I really need to.
Thanks,
John
Hi John,
Can you provide the xaml you used to create the columns. I want to make sure that my sample matches yours when I test this in 10.3. It's a bit weird how only the last row is scrolling and not the others. Any column that isn't fixed should be scrollable.
The XAML is attached. I saved it as a txt file.
Engineering has come back and stated that this issue occurs by design of the XamGrid. The grid handles scrolling on a column basis to prevent empty areas from being seen. What this means is that when the scroll bar is moved, each band is scrolled at a different rate based mainly on the number of columns. Spaces created by indentations are not taken into account because of this.That being said the only option available is to make sure your widths are set to some value. Let me know if you have any questions on this.
I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a development ID of 102650. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.
I have created a case for you that will be linked to the development issue so that you will be notified with new information after the review. The case number is CAS-83796-NTFNZV. You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site.
Hi Rob,
Thanks for the response. I set the width to hard-coded values and now the scrolling works for the most part. The one exception is resizable columns, when resized to a width other than the hard coded width, are causing the same issue. I suspect it has to do with the grid not being able to calculate the row width correctly, as you mentioned. I guess I will have to make the columns non-resizable as well.
To me this seems like an area that the xamgrid could use improvement and hopefully will be addressed in a future release.
I got a sample up and running and was able to reproduce the issue. It seems to be caused by the non-fixed columns using Width="*". The XamGrid isn't able to calculate an accurate width for the rows so the scrolling behaves awkwardly. You might have noticed that the rows above the last one will snap as the scrollbar reaches the end of the right side.
This hasn't changed in 11.2 so the way to fix this is to give all the non-fixed columns an actual width. With a definite width, horizontal row scrolling will function as desired.
I have attached a sample that shows this. Let me know if you have any questions on this.
I'm still going through the XAML and building it into my sample. Your XAML has quite a few variables so it's taking some time to incorporate it. I expect to have the sample ready by Wednesday.