Anyone implement a fixed column in an IGGrid when implementing the data source methods themselves?
The examples I've seen of adding a fixed column on the left side of the grid all appear to use the IGGridViewDataSourceHelper. How would I fix a column to the left side if I am implementing the data source methods myself and not using the helper?
As a quick test, I tried just implementing numberOfFixedLeftColumnsInGridView (returning 1) and widthForFixedLeftColumnAtIndex (returning a width), but they are never called even though I have the delegate set and my other data source methods are called fine, ex: numberOfRowsInSection, cellAt, titleForHeaderInSection, numberOfColumnsInGridView, etc...
Thanks.
Hi Jeff,
You just need to implement:
-(NSInteger)numberOfFixedLeftColumnsInGridView:(IGGridView *)gridView
and
-(IGGridViewCell *)gridView:(IGGridView *)gridView fixedLeftCellAt:(IGCellPath *)path
I've attached a sample that shows this working.
-SteveZ
Thanks. That helped a bunch.
After also implementing widthForFixedLeftColumnAtIndex and fixedLeftHeaderCellAt, and figuring out that numberOfColumnsInGridView should be the number of "non-fixed" columns, it works great!