Our application has 6 fixed left columns and an array off secondary data columns (scrollable). When viewing the data on an iPhope our grid is always offset to the end of the column causing the label to initially be hidden. (See screenshot for reference) As soon as we slide to reveal the label it is ok, so there is no issue with frames or anything of that nature.
I have tried to make the gridview auto scroll to a view at position (0,0). I am curious as to what this could be. I have searched cell properties and grid properties to try and find something dealing with justification or cell alignment. Any help is much appreciated!
This is an issue of the cell alignment. Adjusting which might solve the problem. I faced the same problem in some of my projects that I was doing in my Apple laptop. Later I found that it cannot be adjusted as there was some problem with the laptop. Apple Customer Support recovered me form that. If you are also having the same kind of problem, you can also ask them for the help.
Hey Mike,
Yes, thats completely valid.
-SteveZ
Alright so below is the override method me are using to set the width of the column:
public override IGColumnWidth ResolveColumnWidth(IGGridView gridView, nint column) { var headerName = _currentlyDisplayedCutupModel.MetadataHeaderValues[(int)column + _fixedLeftColumnsCount]; if (headerName == null) headerName = string.Empty; var columnMetaData = _gridColumnsMetaData.Find((obj) => obj.ProperyName.ToLowerInvariant() == headerName.ToLowerInvariant()); var columnWidth = 0; if (columnMetaData != null) columnWidth = columnMetaData.ColumnWidth; return IGColumnWidth.CreateNumericColumnWidth(columnWidth); }
Does this look correct to dynamically set the width of our columns to the length we store of the header String?
Thanks Stephen. Ill take a look at the solution and compare mine, before I respond with more questions.
Hi Mike!
Hmm.. thats strange. You shouldn't have to do anything.. but yea setting the contentOffset property should work as well.
I tried reproducing the issue, but didn't have any luck.
I've attached my sample, can you try it out on your end and see if you can reproduce it?