Hi,
Has anyone else have an issue with the xamDataGrid orientation functionality messing up if you change the column order when in horizontal mode?
I just noticed it today. Flicking between horizontal and vertical works a dream until to change the column layout (order) in horizontal mode at which pont next time you go back to vertical it compresses the grid along the left hand side, almost as if the column rearange in horizontal mode makes the grid think it's width is the header width it was while in horizontal mode. I even tried in using the official Net Advantage feature browser and is suffers the same bug as shown below:
Before:
During:
Thanks
Muumi
Hello Muumi,
This looks like an issue. I was able to reproduce that. I am going to open a support case on your behalf so that you will be notified when the Service Release is out and this is resolved.
Thanks for reporting this.
Actually once you have moved a field then you have provided an explicit layout. Changing the orientation does not flip/rotate that layout. You would need to clear the customizations (using the DP's ClearCustomizations) to have a new layout generated that would consider the orientation.
That does not really make any sence, In what world would a user ever want or expect a column moving action to cause this sort of effect? It's not how any other grid works its a little like writing an application where red status is good and green is bad.
Maybe you can provide some sample code how to get this working as one would expect it to?
thansk
I'm not sure I understand. So in your application, your users can moved fields around and also dynamically change the orientation of the fields? If so, then when you switch the orientation you would have to call ClearCustomizations. You could call SaveCustomizations to save the state of the layout of the old orientation if the user should flip back to that orientation.