This is a migrated thread and some comments may be shown as answers.

grid rowaction does not execute

1 Answer 214 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yilang
Top achievements
Rank 1
Yilang asked on 09 Dec 2016, 12:14 AM
@model IEnumerable<dynamic>
@(
 Html.Kendo().Grid(Model).Name("resgrid")
 .RowAction(row =>
 {
     row.HtmlAttributes["style"] = "background:red;";
 })
 .CellAction(cell =>
 {
              cell.HtmlAttributes["style"] = "background:red;";
 })
 .DataSource(ds => ds.Custom()
    .Transport(t=>t.Read(r =>
    {
        r.Url("../Report/ResultGridRead/" + @ViewBag.ID).DataType("json");
    }))
    )
    .Events(e=>e.DataBinding("DataBinding").DataBound("DataBound"))
)

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 12 Dec 2016, 03:11 PM
Hi Yilang,

Please note that  the "RowAction" is available only for rows that are rendered on server side, when the records are loaded using Ajax request the action is not executed. Could you please verify that you are using a custom server binding? I would appreciate if you share the entire View and Controller in order to examine it further.

Regards,
Kostadin
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Tags
Grid
Asked by
Yilang
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or