This is a migrated thread and some comments may be shown as answers.

Issue with events in partial view

0 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Barry Burton
Top achievements
Rank 1
Barry Burton asked on 22 Feb 2014, 07:18 PM
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!

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Barry Burton
Top achievements
Rank 1
Share this question
or