I have the following grid set up on my view
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.FirstName).Groupable(false);
columns.Bound(p => p.City);
columns.Bound(p => p.EprescribePatientMRN);
columns.Bound(p => p.DateOfBirth);
})
.ToolBar(toolbar =>
{
toolbar.Template(@<text>
<div class="toolbar">
<label class="category-label" for="category">Show products by category:</label>
@(Html.Kendo().DropDownList()
.Name("categories")
.OptionLabel("All")
.DataTextField("CategoryName")
.DataValueField("CategoryID")
.AutoBind(false)
.Events(e => e.Change("categoriesChange"))
.DataSource(ds =>
{
ds.Read("ToolbarTemplate_Categories", "Grid");
})
)
</div>
</text>);
})
.ClientDetailTemplateId("tmplPatientDrugs")
.Groupable()
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Patients", ""))
.PageSize(30)
)
)
and when I hit the page number, I end up getting paging information in the page url, is there a way to work around this. As I would really like a clean url, rather than filling it with querystring params and so on.
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.FirstName).Groupable(false);
columns.Bound(p => p.City);
columns.Bound(p => p.EprescribePatientMRN);
columns.Bound(p => p.DateOfBirth);
})
.ToolBar(toolbar =>
{
toolbar.Template(@<text>
<div class="toolbar">
<label class="category-label" for="category">Show products by category:</label>
@(Html.Kendo().DropDownList()
.Name("categories")
.OptionLabel("All")
.DataTextField("CategoryName")
.DataValueField("CategoryID")
.AutoBind(false)
.Events(e => e.Change("categoriesChange"))
.DataSource(ds =>
{
ds.Read("ToolbarTemplate_Categories", "Grid");
})
)
</div>
</text>);
})
.ClientDetailTemplateId("tmplPatientDrugs")
.Groupable()
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Patients", ""))
.PageSize(30)
)
)
and when I hit the page number, I end up getting paging information in the page url, is there a way to work around this. As I would really like a clean url, rather than filling it with querystring params and so on.