Author Topic: Couple of Questions  (Read 2939 times)

rgorantla

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
Couple of Questions
« on: August 02, 2017, 12:15:57 am »
1. Save State and load State from database:
    I am trying to save and load columns /Column Model to and from Database on to the Grid.Also, after re-ordering - would like to save it to database.
    Local storage is working fine but not database.

2. show/hide columns : when we select a column to hide or unhide can we push those to the end

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5791
    • View Profile
Re: Couple of Questions
« Reply #1 on: August 02, 2017, 04:46:29 pm »
[ Only Pro members may read this post. ]

rgorantla

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
Re: Couple of Questions
« Reply #2 on: August 08, 2017, 06:25:03 pm »
  • Can you provide me an example of how the col model should be when saving to database and how ?

    second question - yes i was using push but whenever i show/hide columns - they are appearing in the order of how col model is defined but not to the end

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5791
    • View Profile
Re: Couple of Questions
« Reply #3 on: August 08, 2017, 10:31:19 pm »
[ Only Pro members may read this post. ]
« Last Edit: August 08, 2017, 10:34:03 pm by paramquery »

rgorantla

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
Re: Couple of Questions
« Reply #4 on: August 10, 2017, 08:31:23 pm »
for the 1st one : Thank you, but i still have a an issue - i will send a sample

2. its the same as how it works in your demo. https://paramquery.com/pro/demos/showhide_columns . Instead of adding it in the order of the colmodel definition - can we show at the end. ?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5791
    • View Profile
Re: Couple of Questions
« Reply #5 on: August 11, 2017, 02:50:36 pm »
[ Only Pro members may read this post. ]

rgorantla

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
Re: Couple of Questions
« Reply #6 on: August 23, 2017, 01:50:41 am »
hi,

2nd point got it to work . Thanks!

1st point :  I think i got it to work but state is having only few properties but not all properties. For ex : for Order Id i have class etc.. but all i see in the state is
{"colModel":[{"width":50,"dataIndx":"OrderID","filter":{}} ..Please let me know what else should i add to get this to include all properties - The reason i am asking is to get the complete colModel from database,

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5791
    • View Profile
Re: Couple of Questions
« Reply #7 on: August 23, 2017, 02:48:49 pm »
[ Only Pro members may read this post. ]