Click here to Skip to main content
15,902,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my current MVC project I have an issue with the GridMvc grid. The issue is I couldn't be able to get the grid data from the controller. I've tried adding a name to the grid.

But, still its not captured in FormCollection.

Can anyone help me on this?

Thanks in advance.

What I have tried:

HTML
@Html.Grid(Model.CustomerNumbers).Columns(columns =>
                               {
                                   columns.Add(model => model.CustomerName).Titled("Customers");

                               }).Sortable(true).Filterable().WithMultipleFilters().WithPaging(10).Named("customerNumbersGrid")
Posted
Updated 25-Jul-18 7:15am

1 solution

$(function () {
pageGrids.Your_Grid_Name_Here.onRowSelect(function (e) {

//alert(e.row.FullCaseNumber);


}); //End OnRowSelect


}); // End Of Function
 
Share this answer
 
Comments
Richard Deeming 25-Jul-18 13:40pm    
TWO YEARS too late, and not an answer to the question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900