Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
NEED URGENT HELP !!

i want to click a row in a (kendo-telerik) grid and navigate it a another page where the row's details are further described. pls help.

thanks.
Posted
Updated 28-Apr-15 19:33pm
v2
Comments
Karthik_Mahalingam 29-Apr-15 1:27am    
how will you know that, which row has been clicked, to get the details ?

1 solution

You can try like this

Javascript

JavaScript
// navigates to the details page of  id
 var functionNavigate = function (id) {

     var url = '@Url.Action("ActionName", "ControllerName")?id=' + id;
     window.location.href = url;
 }


Kendo Grid

C#
@(Html.Kendo().Grid<EntityName>
    ()
    .Name("grid")
    .Columns(columns =>
    {


    columns.Bound(c => c.ID).Title("ID").Width(90).ClientTemplate("<button type='button' onclick='functionNavigate(\"#: ID #\")' >#: ID #</button>");
    columns.Bound(c => c.Column2).Title("Title 2").Width(85);
 
Share this answer
 
v2
Comments
shikhar gilhotra 29-Apr-15 6:19am    
pls note - "without an ID"
Karthik_Mahalingam 29-Apr-15 7:18am    
how will you get to know that, which row has been clicked ?
shikhar gilhotra 29-Apr-15 7:57am    
that is possible..using angular
Karthik_Mahalingam 29-Apr-15 8:05am    
is it possible in another page ?

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