Thank you Fred. That helped me in finding actual issue.

I was dynamically creating the columns and earlier I had tried to directly
set the lockcedColumnCount in mxml.

<s:DataGrid id="dgSpread" interactionMode="touch" width="100%"
height="100%" dataProvider="{model.pdSpreadAC}"
columns="{model.pdSpreadColumns}" rowHeight="40"
                    cacheAsBitmap="true" lockedColumnCount="1"/>

For some reason the above code wasn't giving me any lockedcolumns.

Then I tried to set the lockcedcolumns only after datagrid's columns were
ready:

<s:DataGrid id="dgSpread" interactionMode="touch" width="100%"
height="100%" dataProvider="{model.pdSpreadAC}"
columns="{model.pdSpreadColumns}" rowHeight="40"
                    cacheAsBitmap="true"
lockedColumnCount="{model.pdLockedColCount}"/>

I set the value of  model.pdLockedColCount only after I filled up
model.pdSpreadColumns array. Then it works fine.

Thanks again.


On Mon, Aug 4, 2014 at 2:23 PM, Fred Brunton <[email protected]> wrote:

> Here's an example of the spark datagrid in my app with locked first column.
>  I have locked the first column and given it a gray background:
>
> https://www.analyticacloud.com/fixedFirstColumnSparkDataGrid.avi
>
> That's on my Ipad mini in iOS7 (not retina).
>
> I simply set dataGrid.lockedColumnCount = 1;  I did not do anything to
> interactionMode.
>
> If you want me to come up with some sample code, let me know.
>
>
>
> On Sat, Aug 2, 2014 at 11:02 PM, Deepak MS <[email protected]>
> wrote:
>
> > Hi Fred,
> > Yes, I too am 4.12.1. I have given lockedcolumncount as 1 and
> > interactionMode as touch. Is there any other property I need to set? I'm
> > trying it out on retina display ipa with iOS 6.1 and iOS 7.
> >
> >
> >
> >
> > On Sat, Aug 2, 2014 at 5:15 PM, Fred Brunton <[email protected]>
> wrote:
> >
> > > I have an app that uses that has the first column locked in a spark
> > > datagrid and it works fine on my ipad.
> > >
> > > I am using Flex 4.12.1.
> > >
> > > Before the locked column feature was added to the spark datagrid, I
> > faked a
> > > fixed first column by using two datagrids.  One datagrid for the first
> > > column and another datagrid for the rest of the columns.  Then I would
> > > listen for scroll events and keep the two grids synced.  Though I have
> to
> > > admit a never got this working on ios.
> > >
> > >
> > > On Fri, Aug 1, 2014 at 3:26 PM, Deepak MS <[email protected]>
> > > wrote:
> > >
> > > > Hi there,
> > > > I have a requirement to lock the first column on a datagrid.I was
> using
> > > > MobileGrid, but it doesnt have that option and hence I used spark
> > > DataGrid,
> > > > which has the option. But for some reason, it doesn't seem to work on
> > > iPad.
> > > > Is there a work around for it to make it work on iPad? From no where,
> > > this
> > > > has become a critical requirement ;(
> > > >
> > >
> >
>

Reply via email to