Hi there!
We have some grids, the user can switch between row layout and card view.The .Width (CardSettings) is calculated by the largest column, this all works fine (AutoFit is not always an option).
Now we want to save the width value to restore it next time, but I found no event which is fired when the user change the width of the cards.
The AfterColPosChanged is only fired when CardView is false.
So is there way to get the width after a user resized the cards?
rgds
Wolfgang
Okay. Presumably you'll have to save the resolved width between sessions and that wouldn't interfere with datasource updating.
Normally we do not remove or add columns, but in some cases we have to add new columns in the database (or rename), that's why we can not really use a saved layout.
Hello, yes, updates to the underlying datasource the grid is bound to may interfere with the layout that previously had the column existing in the layout. May I ask why you are removing a column from the datasource and not just hiding the columns from the grid?I suggest reading this forum reply.
www.infragistics.com/.../load-existing-layout-when-underlying-datasource-has-new-columns
This is not very practicable. If we add or remove columns from the source we have serious troubles, if we load a layout which is (not) including these columns.Anyway, thanks for the answer
Hello and thank you for contacting Infragistics. You may use the grid's load and save layout functionality to preserver user interactions such as changing the width of the cards. I attached a sample demonstrating this. Also the grid has a Resolved width property I commented out which you can retrieve the width at any time. Let me know if you have any questions.
WFCardViewTest.zip