Author Topic: pqgrid applied to several tabs  (Read 3178 times)

kavyasetty

  • Newbie
  • *
  • Posts: 25
    • View Profile
pqgrid applied to several tabs
« on: December 13, 2013, 04:59:19 pm »
hi,

I have 5 tabs , i have added pqgrid plugin to all this 5 tabs . i have a single save button. when i click on save button is it possible to save the data from all the grids to DB.

other question is suppose i edit some cell in the grid of 1st tab and move to 2nd tab will the data in 1st tab be lost ?

Kindly help on how to capture the data of all grid on click of save.Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: pqgrid applied to several tabs
« Reply #1 on: December 13, 2013, 09:29:05 pm »
It's same procedure whether you want to send data of a single grid or 5 grids.

it's upto you to send them together or in separate AJAX requests.

Use JSON.stringify (dataModel.data) to serialize the JSON data of a grid into string.