Whoops, I made a mistake. Page position is lost when:
table.showkeycolumn = False

but the "solution" is the same... fnDraw(false)

On Apr 12, 8:02 pm, tomt <tom_tren...@yahoo.com> wrote:
> Hi,
>
> I discovered why pagination is lost.  When table.showkeycolumn = true
> then at line 733
>
> hidekeycolumnjs = "var hidekeycolumn =
> 200;oTable.fnSetColumnVis(0,false);oTable.fnDraw();"
>
> The datatable API says that fnDraw() has the side effect of resetting
> the pagination
>
> If the call is changed to "... oTable.fnDraw(false)" then pagination
> is not lost.
>
> I don't know if this change would have any negative effects, but so
> far it has worked for me.
>
> - Tom
>
> On Apr 7, 7:54 am, Bruno Rocha <rochacbr...@gmail.com> wrote:
>
> > I,m Sorry. I am without time to dedicate to powerTable now. I hope to get
> > this project back soon and I will start to fix some issues and implement the
> > TODOs. (any volunteer?)
>
> > The state saving is a Java Script issue and it is explained 
> > here:http://datatables.net/examples/basic_init/state_save.html
>
> > I will take a look in to it.
> > --
> > Bruno Rocha
> > [ About me:http://zerp.ly/rochacbruno]
>
> > On Thu, Apr 7, 2011 at 12:49 AM, tomt <tom_tren...@yahoo.com> wrote:
> > > Hi,
>
> > > I'm using powertable and set table.dtfeatures['bStateSave'] = True
> > > The search parameters are saved successfully, but the page position
> > > is not being restored. The cookie created by powertable saves
> > > iStart and iEnd but they don't appear to be used.
>
> > > I looked at the plugin_powertable.py code, but it was not easy to
> > > determine how bStateSave was processed.
>
> > > Is it possible to restore page position with powertable?
>
> > > Any hints or suggestions would be appreciated.
>
> > > thx, - Tom
>
>

Reply via email to