Author Topic: how to get chosen lines when some are covered up?  (Read 2077 times)

gailbrown

  • Newbie
  • *
  • Posts: 1
    • View Profile
how to get chosen lines when some are covered up?
« on: June 25, 2018, 02:49:44 pm »
My matrix is made from a variety of items (json). I'm including a mass alter usefulness in view of the chose lines. Keeping in mind the end goal to submit changes in view of the chose columns, I require the essential key of each chosen push. This essential key is likewise shown as a section in the lattice. I can figure out which columns are chosen utilizing:
myGrid.pqGrid( "choice", { type:'row', method:'getSelection' } )
Anyway I can't figure out how to choose the essential key straightforwardly from the source information. I took a stab at utilizing the "getRow" strategy on each chose push and parsing the returned TR to separate the key esteem, yet it doesn't create the impression that you can choose lines that are covered up (i.e. on the off chance that a portion of the chose columns are on a past page). This can happen on the off chance that somebody clicks a line on page 1, at that point goes to page 2 and move clicks a line. For this situation, the "determination" strategy may state that 5 columns are chosen, yet the "getRow" service can just get the lines on the present page, not the ones on a past page. Possibly I'm approaching this off-base.
Is there an approach straightforwardly to the json information protests that compare to the chose lines? If not, is there an approach to kill multi-choice over different pages?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: how to get chosen lines when some are covered up?
« Reply #1 on: July 02, 2018, 04:51:51 pm »
Correct way is:

Code: [Select]
$( ".selector" ).pqGrid( "selection",{ type: 'cell', method: 'getSelection' }

It provides all row selections across all pages.

Example:

https://paramquery.com/demos/selection_checkbox