This example illustrates how to collect all selected values (for example, keys) on the client side via the ASPxClientGridView.GetSelectedFieldValues method and pass them to:
- The GridView callback action via the e.customArgs dictionary (Passing Values to Controller Action Through Callbacks);
- Any controller post action via a hidden input element.
Question Comments
Added By: hernan bogantes at: 12/6/2013 7:28:25 AM
I checked your sample against my code and the only difference is the line below. But if when I added it, it grid crash., which means the screens do not render the grid.
settings.ClientSideEvents.SelectionChanged = "OnSelectionChanged";
----------------------------------------------
I am still having the same issue.
Maybe I don't understand the example correctly, but I would have expected, that in GridViewEditingPartial.cshtml is a line "settings.ClientSideEvents.BeginCallback = "OnBeginCallback";" passing the selected values to the controller. But there is none. Maybe this example is broken?
Added By: Anthony (DevExpress Support) at: 6/23/2014 12:19:48 PM Hi Rufus,We will provide you with an answer in the http://www.devexpress.com/Support/Center/Example/Details/E20065 seems to be broken ticket.Added By: Patrick Winkler at: 8/11/2014 12:57:55 AM
How can I do this with nested grids? Basically a nested row selection grid.
There must be unique grid names, but on parsing them on the client side in javascript I cannot select values from dynamic named grid's.
Any idea?
Thanks, Patrick
Added By: Mike (DevExpress Support) at: 8/11/2014 1:07:34 AMHello Patrick,
To process your recent post more efficiently, I created a separate ticket on your behalf: T138875: E20065: How to get all GridView selected keys and pass them to a Controller / Master Detail. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
Is the code used for the v2012 and v2013 versions compatible with the v2014 and v2015 versions? For example if I'm currently using v2013 and I implement the code example for v2013 and I later upgrade to v2015, will it still work or need to be updated to something as shown in the v2015 example?