I am new on Kendo UI.
I am using Kendo Grid from Client Side. I am also bound data from Client side.
Consider following code which i have used to bind json data.
I just want to show another column called action column. From where user can do perform another action. In my action link i want to show First name. How i can do that?
I can populate action column from server side but now i want to do everything from client side.
If i consider server side
I want something similar on client side.
Hope you will help me.
I am using Kendo Grid from Client Side. I am also bound data from Client side.
Consider following code which i have used to bind json data.
var
people = [
{ firstName:
"Hasibul"
, lastName:
"Haque"
, email:
"hasibul@yahoo.com"
}
];
$(
'#grid'
).kendoGrid({
scrollable:
true
,
sortable:
true
,
pageable:
true
,
selectable:
"row"
,
filterable:
true
, dataSource: { data: people, pageSize: 10 }
, columns:
[
{ field:
"firstName"
, title:
"First Name"
}
, { field:
"lastName"
, title:
"Last Name"
}
, { field:
"email"
, title:
"email"
}
, {
field:
"action"
, title:
"Action"
,
template:
"I want to put action linke here by using field value(firstName)"
}
]
});
I just want to show another column called action column. From where user can do perform another action. In my action link i want to show First name. How i can do that?
I can populate action column from server side but now i want to do everything from client side.
If i consider server side
column.Template(c => @Html.ActionLink(c.Description,
"foo"
,
new
{ id = c.prop, })
Hope you will help me.