Hello everyone,
I have some examples with Telerik MVC, one of them is a batch editing grid in MVC, works great but now i need to copy that example to Kendo MVC and the library is not the same (i have the latest version: kendoui.trial.2012.2.710)
Altough i can't find examples of Kendo MVC Libraries in the API section, why?
I can set the action of the save command or the create ?
I have the following code:
@(Html.Kendo().Grid<PersonalDto>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.PersonalID).Width(50);
columns.Bound(p => p.FirstName).Width(100);
columns.Bound(p => p.LastName).Width(100);
columns.Bound(p => p.DateBeginToWork).Width(120);
})
.DataSource(dataSource => dataSource
.Ajax() // Specify that the data source is of ajax type
.Model(model => model.Id(p => p.PersonalID))
.ServerOperation(false)
.Read(read => read.Action("FillGrid", "Personal").Data("fnGetSelectedProjectID") // Specify the action method and controller name
))
.Editable(editing => editing.Mode(GridEditMode.InCell))
.ToolBar(commands =>
{
commands.Create();
commands.Save();
})
.Pageable()
)
Thanks
Santiago.
I have some examples with Telerik MVC, one of them is a batch editing grid in MVC, works great but now i need to copy that example to Kendo MVC and the library is not the same (i have the latest version: kendoui.trial.2012.2.710)
Altough i can't find examples of Kendo MVC Libraries in the API section, why?
I can set the action of the save command or the create ?
I have the following code:
@(Html.Kendo().Grid<PersonalDto>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.PersonalID).Width(50);
columns.Bound(p => p.FirstName).Width(100);
columns.Bound(p => p.LastName).Width(100);
columns.Bound(p => p.DateBeginToWork).Width(120);
})
.DataSource(dataSource => dataSource
.Ajax() // Specify that the data source is of ajax type
.Model(model => model.Id(p => p.PersonalID))
.ServerOperation(false)
.Read(read => read.Action("FillGrid", "Personal").Data("fnGetSelectedProjectID") // Specify the action method and controller name
))
.Editable(editing => editing.Mode(GridEditMode.InCell))
.ToolBar(commands =>
{
commands.Create();
commands.Save();
})
.Pageable()
)
Thanks
Santiago.