Author Topic: Is it possible to know current position of Column  (Read 3719 times)

Maxedy

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 7
    • View Profile
Is it possible to know current position of Column
« on: February 27, 2014, 05:52:05 pm »
Hi @Admin,
                How we can know about current position of column in paramQuery . When we drag a column from one position to other how can we detect new position of column. Is there any solution to detect new position.

Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Is it possible to know current position of Column
« Reply #1 on: February 27, 2014, 06:18:31 pm »
May I know what you are trying to do so as to require current position of column.

use http://paramquery.com/pro/api#method-getColIndx when you know the dataIndx of the field.
« Last Edit: February 27, 2014, 06:22:33 pm by paramquery »

Maxedy

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Is it possible to know current position of Column
« Reply #2 on: February 27, 2014, 06:23:58 pm »
 Initially i know dataindx of column after drag it i am unable to find new position of column in console log or something. I just want to find changing dataindx  of columns.  Whenever i changing the position  i want to show these changes in my console log.
Thanks

Maxedy

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Is it possible to know current position of Column
« Reply #3 on: February 27, 2014, 07:16:56 pm »
We want set previous view which we set in  last time. So that's why we  need Current position of column which i changed recently.
We want save these column position whenever open the page i want previous setting which i saved last time.
Please If You get then, Please show us some solution for that.

Thanks
 

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Is it possible to know current position of Column
« Reply #4 on: February 27, 2014, 07:23:14 pm »
When you reorder the columns, new order is saved in the colModel.

So save the whole colModel in a cookie when page unloads and load colModel from cookie when page loads.

http://paramquery.com/forum/index.php?topic=450