Current filter:
                                You should refresh the page.
                                0
                                  • I'm currently using the RowKey when a user clicks on a row button in the GridView :-

                                    settings.ClientSideEvents.CustomButtonClick =

                                    "function(s, e) { if(e.buttonID == 'ViewButton') window.location.href = '/PersonFolderOverview/PersonFolderOverview?personId=' + s.GetRowKey(e.visibleIndex);}";

                                    This works great!

                                    But my question is, how do I pass a value that's not the RowKey? For Instance, I might need to pass a Persons Name or Date of Birth from one of the Grids columns. I imagine I need something similar to this (I made up the GetTheColumnValue bit!)

                                    settings.ClientSideEvents.CustomButtonClick =

                                    "function(s, e) { if(e.buttonID == 'ViewButton') window.location.href = '/PersonFolderOverview/PersonFolderOverview?personName=' + s.GetTheColumnValue(e.visibleIndex, 'PersonName');}";


                                    In a bit of a hurry with this issue so hope you can help ASAP!

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                You can use the ASPxClientGridView.GetRowValues method to retrieve row cell values from the server. However, this method sends an additional request to get data.

                                Alternatively, you can use a row identifier to get additional row data in the Controller.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.