Hi,
I am not using the DataSourceHelper in our scenario.
So I am implementing the IGGridViewDataSource protocol, and would like the left 2 columns to be fixed.
However the - (NSInteger)numberOfFixedLeftColumnsInGridView:(IGGridView *)gridView is not called, and the other methods are called so I am setting the dataSource property of the grid properly.
How do I get this method to be called?
Thank you.
Thats actually by design. The adorner needs to appear above the cells in order to display. Plus, you can display the adorner on a column thats half in view, so you'd want to be able to see the full width of the column when you're resizing it. Although, for non fixed columns it'd be as if the column were half outside the viewport, so maybe I can do something to fix that in the next SR. However, i'm not 100% positive, as we offer the adorner for Fixed Columns as well, which would make it hard to control the z-order for certain cases.
-Stevez
Hi Stephen,
I followed your suggestion by setting the cell background color to non-transparent.
However if a column has the column resize adorner visible, it is still visible when it is scrolled behind the fixed columns.
What other setting do I need to do?
Thanks again.
So the default background colors of Cells are transparent.
So you can either apply a theme or when you create a cell, be sure to set a background color on them.
-SteveZ
Thanks for the response and it work following your answer.
However when I scroll the non-fixed columns to go "behind" the fixed columns, the text of the non-fixed columns appear "overlapping". Same for the column resize adorner which is still visible when it go behind the fixed columns.
Am I missing anything.
Thanks.
Correct, the numberOfColumnsInGridView method, is just for the non fixed columns.
So you would need to track which columns you're fixing, and which ones you're not. Thats why in the DataSourceHelper we have the column constructs to track what we're displaying. Since you're implementing this yourself, i would recommend on doing something similar.
Hope this helps clarify things.