This is a migrated thread and some comments may be shown as answers.

[Solved] Select all Checkboxes (including ones that are not on the screen)

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthew
Top achievements
Rank 1
Matthew asked on 12 Jan 2011, 12:30 AM
My apologies in advance for the poor subject Title. I'm attempting to implement a feature requested by a user. This user is not a programmer and doesn't really understand how all of this works, so naturally they think this is easy, somehow. (ha,ha) Ok, here goes:

I have a Telerik MVC Grid implemented similarly to the one shown in this demo of ServerSide Checkboxes. Using the JQuery code that I found in this thread about ASP.NET MVC Grid Header Master Checkbox, I was able to place a Checkbox at the top of the Column of Checkboxes that when checked Selects All the boxes or Deselects All the boxes. Easy, great, super.

The limitation is naturally that only the checkboxes that are *visible* on the page are selected. I have a user telling me that they want the "master" checkbox (the one in the header column) to "virtually" select all the rows available. Then when clicking the Submit button, the controller gets a list of all those rows (or Row IDs, rather.)

So for example:  If you click the link to the demo of the ServerSide Checkboxes (that I linked to above), it shows a table of 10 rows out of 830 possible rows. Let's then assume that the user filters this list somehow (filtering is not implemented in the demo) and reduces it to 200 entries.  And assuming that a "master" checkbox in the header column was implemented in this demo (per the 2nd link above), clicking that checkbox and pressing "Display Checked Orders" would display all 200 rows.

How would I go about obtaining said list in my Controller with that user selected Filtering in place?




1 Answer, 1 is accepted

Sort by
0
Matthew
Top achievements
Rank 1
answered on 13 Jan 2011, 11:16 PM
Ok, here's another question that (if someone can help me with) should be able to get me in the right direction:

So when a filter is selected in the Grid, it shows up as a parameter in the URL bar/line in my browser. What code/mechanism is interpreting these parameters?
Tags
Grid
Asked by
Matthew
Top achievements
Rank 1
Answers by
Matthew
Top achievements
Rank 1
Share this question
or