This question is locked. New answers and comments are not allowed.
HI,
I am working on exploring the grid features of the Kendo UI. I am working on binding the data table to the grid and populating the data's.
I got the sample solution to work on the data table with the grid from the below URL.
URL: http://www.kendoui.com/code-library/mvc/grid/binding-to-datatable.aspx
I am pretty impressed with the Grid View, but when to try to create the the edit view mode as INLINE (or ) INCEL in the grid i am getting the below error.when i try to give the popup in the gridview, I am not getting anything from the data table in popup.
Please suggest me that whether am I trying anything wrong or Kendo UI dosen't support the below functionality.if kendo UI supports this functionality,
could you please give me the working example ???????
Error:
"Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions."
Code Used:
@model System.Data.DataTable
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => {
columns.Command(command => { command.Edit(); }).Width(100).Title("Edit");
columns.Command(command => { command.Destroy(); }).Width(100).Title("Delete");
foreach (System.Data.DataColumn column in Model.Columns)
{
columns.Bound(column.DataType, column.ColumnName);
}
})
.Editable(ed => ed.Mode(GridEditMode.InCell))
.ToolBar(toolbar =>
{
toolbar.Create();
toolbar.Save();
})
.Pageable()
.Sortable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.Model(model =>{model.Id(OP => OP.Row[0]);
model.Field(pd => pd.Row[0]).Editable(false);})
.Create(update => update.Action("EditingInline_Create", "ModelsView"))
.Read(read => read.Action("Read", "Home"))
.Update(update => update.Action("EditingInline_Update", "ModelsView"))
.Destroy(update => update.Action("EditingInline_Destroy", "ModelsView"))
)
)
I am working on exploring the grid features of the Kendo UI. I am working on binding the data table to the grid and populating the data's.
I got the sample solution to work on the data table with the grid from the below URL.
URL: http://www.kendoui.com/code-library/mvc/grid/binding-to-datatable.aspx
I am pretty impressed with the Grid View, but when to try to create the the edit view mode as INLINE (or ) INCEL in the grid i am getting the below error.when i try to give the popup in the gridview, I am not getting anything from the data table in popup.
Please suggest me that whether am I trying anything wrong or Kendo UI dosen't support the below functionality.if kendo UI supports this functionality,
could you please give me the working example ???????
Error:
"Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions."
Code Used:
@model System.Data.DataTable
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => {
columns.Command(command => { command.Edit(); }).Width(100).Title("Edit");
columns.Command(command => { command.Destroy(); }).Width(100).Title("Delete");
foreach (System.Data.DataColumn column in Model.Columns)
{
columns.Bound(column.DataType, column.ColumnName);
}
})
.Editable(ed => ed.Mode(GridEditMode.InCell))
.ToolBar(toolbar =>
{
toolbar.Create();
toolbar.Save();
})
.Pageable()
.Sortable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.Model(model =>{model.Id(OP => OP.Row[0]);
model.Field(pd => pd.Row[0]).Editable(false);})
.Create(update => update.Action("EditingInline_Create", "ModelsView"))
.Read(read => read.Action("Read", "Home"))
.Update(update => update.Action("EditingInline_Update", "ModelsView"))
.Destroy(update => update.Action("EditingInline_Destroy", "ModelsView"))
)
)