I have a couple of issues when I place kendo widgets inside of a partial view.
1. If I add events to my grid, the partial view will fail to load, however without grid events enabled, the partial view will load just fine. If I place the EXACT SAME grid in a regular view WITH events, the page loads/populates without issue. Here is the grid:
@(Html.Kendo().Grid<MyApp.Models.MyModel>()
.Name("MyGrid")
.Columns(columns =>
{
columns.Bound(c => c.Id);
columns.Bound(c => c.Name);
columns.Bound(c => c.Description);
columns.Bound(c => c.RootSite);
})
.Pageable()
.Sortable()
.Filterable()
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Single)
.Type(GridSelectionType.Row))
.Events(events => events.Change("onChange"))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Model(model => model.Id(c => c.Id))
.Read(read => read.Action("Read", "MyController")))
)
2. Using the kendo splitter example, if I place the splitter from the example in a partial view, all panels are collapsed, even if Collapsible(false) is added to the slider. As with my grid (see above), if I place the splitter example in a regular view, it works fine.
I really need some help on this issue, as it is preventing me from moving forward with my project.
Any help will be very much appreciated!
1. If I add events to my grid, the partial view will fail to load, however without grid events enabled, the partial view will load just fine. If I place the EXACT SAME grid in a regular view WITH events, the page loads/populates without issue. Here is the grid:
@(Html.Kendo().Grid<MyApp.Models.MyModel>()
.Name("MyGrid")
.Columns(columns =>
{
columns.Bound(c => c.Id);
columns.Bound(c => c.Name);
columns.Bound(c => c.Description);
columns.Bound(c => c.RootSite);
})
.Pageable()
.Sortable()
.Filterable()
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Single)
.Type(GridSelectionType.Row))
.Events(events => events.Change("onChange"))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Model(model => model.Id(c => c.Id))
.Read(read => read.Action("Read", "MyController")))
)
2. Using the kendo splitter example, if I place the splitter from the example in a partial view, all panels are collapsed, even if Collapsible(false) is added to the slider. As with my grid (see above), if I place the splitter example in a regular view, it works fine.
I really need some help on this issue, as it is preventing me from moving forward with my project.
Any help will be very much appreciated!