Hello,
in our MVC 4 application we use a Kendo grid with the following configuration:
@(Html.Kendo().Grid(Model)
.Name("GridAddDrive")
.Columns(columns =>
{
columns.Bound(m => m.Type1Name);
})
.Navigatable()
.Selectable(selectable => selectable.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row)).Events(events => events.Change("selectionChange"))
.Pageable()
.Scrollable()
.Sortable()
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
)
)
When you now open the view which contains the grid and click a header of the column to sort it, you will be redirect to the link in the href of the column header.
The href in the header looks like this:
http://localhost:50107/ProjectDrives/AddDriveDialog?_=1369648574797&GridAddDrive-sort=Type1Name-asc
The question now:
Why the href of the column header contains this link?
Other views which also contains a grid, the problem does not exist. In these views the href only contains a "#" and not a URL. A difference between the views is that these with the "#" in the href uses ajax to load data.
When searching for a solution we have found this article http://www.kendoui.com/forums/ui/grid/grid-sorting-problem.aspx, but the proposed solution seems to make no sense, because we have included all the files and in addition to that the functionality is given on other views.
Do you have another idea for a solution or suggestion to suppress the content of the href?
Kind Regards,
Peter Kaiser
in our MVC 4 application we use a Kendo grid with the following configuration:
@(Html.Kendo().Grid(Model)
.Name("GridAddDrive")
.Columns(columns =>
{
columns.Bound(m => m.Type1Name);
})
.Navigatable()
.Selectable(selectable => selectable.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row)).Events(events => events.Change("selectionChange"))
.Pageable()
.Scrollable()
.Sortable()
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
)
)
When you now open the view which contains the grid and click a header of the column to sort it, you will be redirect to the link in the href of the column header.
The href in the header looks like this:
http://localhost:50107/ProjectDrives/AddDriveDialog?_=1369648574797&GridAddDrive-sort=Type1Name-asc
The question now:
Why the href of the column header contains this link?
Other views which also contains a grid, the problem does not exist. In these views the href only contains a "#" and not a URL. A difference between the views is that these with the "#" in the href uses ajax to load data.
When searching for a solution we have found this article http://www.kendoui.com/forums/ui/grid/grid-sorting-problem.aspx, but the proposed solution seems to make no sense, because we have included all the files and in addition to that the functionality is given on other views.
Do you have another idea for a solution or suggestion to suppress the content of the href?
Kind Regards,
Peter Kaiser