MVC 3 Webgrid make entire row clickable

后端 未结 2 910
野的像风
野的像风 2021-01-05 14:23

I am using webgrid in my razor view in MVC 3. Below is how my webGrid looks, I want to make the entire row clickable and on click pass values to the javascript method also.

2条回答
  •  清酒与你
    2021-01-05 15:02

    You have to use JQuery to add row click functionality

    Add htmlAttributes: new { id="MainTable" } in your webgrid.

    
    

提交回复
热议问题