I have defined a grid like this:
@(Html.Kendo().Grid(Model)
.Name("OnlineVisitors")
.Columns(c =>
{
c.Bound(p => p.DurationInMinute).Title("duration");
c.Bound(p => p.PersianStartDate).Title("start time");
c.Bound(p => p.IP).Title("IP Address");
})
.DataSource(datasource =>
datasource.Ajax()
.Read(read => read.Action("JsonList", "OnlineVisitors", routeKeyValues))
)
)
And now i want to refresh the grid in JavaScript code,after an Ajax call to server,that do something with data source i'm using.any help will be appreciated.
@(Html.Kendo().Grid(Model)
.Name("OnlineVisitors")
.Columns(c =>
{
c.Bound(p => p.DurationInMinute).Title("duration");
c.Bound(p => p.PersianStartDate).Title("start time");
c.Bound(p => p.IP).Title("IP Address");
})
.DataSource(datasource =>
datasource.Ajax()
.Read(read => read.Action("JsonList", "OnlineVisitors", routeKeyValues))
)
)
And now i want to refresh the grid in JavaScript code,after an Ajax call to server,that do something with data source i'm using.any help will be appreciated.