We migrated from the original Telerik grid to Kendo, and we are seeing redundant ajax calls.
We had code that previously implemented the telerik grid
@(Html.Telerik().Grid()<myTransactions>
.Name("Transactions")
.ClientEvents(events => events.OnLoad("TransactionsGrid_onLoad"))
.ClientEvents(events => events.OnDataBound("TransactionsGrid_onDataBound"))
.DataBinding(dataBinding => dataBinding
.Ajax()
.OperationMode(GridOperationMode.Client)
.Select("TransactionsAjax", controller))
We have recently migrated to Telerik's Kendo grid, and changed the code to the following:
@(Html.Kendo().Grid<myTransactions>()
.Name("Transactions")
.AutoBind(true)
.Events(events => events.DataBound("TransactionsGrid_onDataBound"))
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.Read(read => read.Action("TransactionsAjax", controller))
.PageSize(15))
In addition to the grid, the page has 3 other fields; a combobox and 2
date fields that filter the grid. The filtering works fine.
However, the printer friendly button calls TransactionsAjax for the
Kendo grid and removes all filtering that was applied. The original
Telerik just rendered the existing grid as print friendly without making
a redundant call to TransactionsAjax.
Since the desired data to be printed is already filtered and available
on the screen there is no reason to repeat the call. Is there some grid
configuration setting I am missing that would stop the undesired call
from happening?
We had code that previously implemented the telerik grid
@(Html.Telerik().Grid()<myTransactions>
.Name("Transactions")
.ClientEvents(events => events.OnLoad("TransactionsGrid_onLoad"))
.ClientEvents(events => events.OnDataBound("TransactionsGrid_onDataBound"))
.DataBinding(dataBinding => dataBinding
.Ajax()
.OperationMode(GridOperationMode.Client)
.Select("TransactionsAjax", controller))
We have recently migrated to Telerik's Kendo grid, and changed the code to the following:
@(Html.Kendo().Grid<myTransactions>()
.Name("Transactions")
.AutoBind(true)
.Events(events => events.DataBound("TransactionsGrid_onDataBound"))
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.Read(read => read.Action("TransactionsAjax", controller))
.PageSize(15))
In addition to the grid, the page has 3 other fields; a combobox and 2
date fields that filter the grid. The filtering works fine.
However, the printer friendly button calls TransactionsAjax for the
Kendo grid and removes all filtering that was applied. The original
Telerik just rendered the existing grid as print friendly without making
a redundant call to TransactionsAjax.
Since the desired data to be printed is already filtered and available
on the screen there is no reason to repeat the call. Is there some grid
configuration setting I am missing that would stop the undesired call
from happening?