Click here to Skip to main content
14,929,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i want to get the coachId when clicking on the row of grid...
how get the coachid and how to pass the value to controller...
HTML
$(document).ready(function () {
       var users;

       $("#grid2").kendoGrid({
           dataSource: { data: users, pageSize: 10 }// binding data
          , pageable: true
          , columns: [
              { field: "CoachID", hidden: true }
              , { field: "SportsName", title: "SportsName" }
              , { field: "FirstName", title: "Name" }
          ],
          selectable: "row",
       });
       $("#grid2").on("click", function () {
          location.href = '/Coaches/Create/';
       });


i am new in mvc...

Regards
AR
Posted

1 solution

I would request you to go through some of the help resources -

Kendo UI Demos
[^]
Selecting a row of a Grid programmatically[^]
http://www.telerik.com/forums/grid-select-by-id[^]
   

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