Hi All,
I have enabled card view & row layout in my infragistics grid. In my row layout, I have 4 rows per card and each row has 4 columns. All the cells in one row are visible in one card and not in other cards. When all the cells are hidden in one row of a card, I see an empty row. Is it possible to hide this empty row in the cards where all cells of that are hidden?
Thanks
Ponnu
That's not going to work. A DrawFilter is intended to deal with drawing. It's a bad idea to try to resize elements in a DrawFilter. If you want to resize UIElements it woud be more appropriate to use a CreationFilter. But this still isn't going to let you do what you want here - at least not in any reasonable way. You could certainly size the CellUIelements to 0, but the grid won't know that you did so and it will not adjust the positions or sizes of any adjacent objects. So you would basically have to re-arrange just about every element in the grid in order to get this to work how you want it - it's really not feasible.
Hi Mike,
Thanks, I need to have the CardSettings style to compressed so I get the collapsed\expanded views, it does not work with VariableHeight like you said because of using RowLayout.
I tried to do it using CustomDrawFilter. The way I see it, if I could reduce the height of RowUIElement and change the locations of CardLabelUIElement & CellUIElement, it should work. But I could not get this working.
I would appreciate your help in this.
Hi Ponnu,
No, I don't this this is possible. You can try seting the CardSettings.Style to VariableHeight, but I don't think this will work in this case since you are using a RowLayout with multiple columns.