Hi to all, i am facing one problem while binding my json data to Kendo grid
I have 7 columns in database . I ma fetching 5 columns and sending data through json and binding Kendo Grid,
but when passing those 6th or 7th column Kendo grid not showing anything as its coming in json result.
Please help as i don't know what to do with this
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(model => model.FirstName).Width(150);
columns.Bound(model => model.LastName).Width(150);
columns.Bound(model => model.EmailAddress).Width(150).Sortable(false);
columns.Bound(model => model.IsActive).Width(100);
columns.Bound(model => model.LoginName).Width(100).Visible(false);
//columns.Bound(model => model.Address).Width(100).Visible(false);
// Add "Edit" and "Destroy" commands
columns.Command(command => { command.Edit(); }).Width(100);
})
.Pageable(pageable => pageable.ButtonCount(5))
.Sortable(sort => sort.Enabled(true))
.Filterable()
.Scrollable()
.Groupable()
// Add "Create" command
.ToolBar(commands => commands.Create())
// Set the edit mode to "PopPup"
.Editable(editable => editable.Mode(GridEditMode.PopUp))
.HtmlAttributes(new { style = "height:430px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(50)
.ServerOperation(false)
.Model(model => model.Id(p => p.ID))
.Create("InsertUser","ProductKendo")
.Update("UpdateUser","ProductKendo")
.Destroy("DeleteUser","ProductKendo")
.Read(read => read.Action("GetUserDataKendo", "ProductKendo")
)
) .Resizable(resize => resize.Columns(true))
)
when i send address field,grid doesn't show anything
Thanks
I have 7 columns in database . I ma fetching 5 columns and sending data through json and binding Kendo Grid,
but when passing those 6th or 7th column Kendo grid not showing anything as its coming in json result.
Please help as i don't know what to do with this
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(model => model.FirstName).Width(150);
columns.Bound(model => model.LastName).Width(150);
columns.Bound(model => model.EmailAddress).Width(150).Sortable(false);
columns.Bound(model => model.IsActive).Width(100);
columns.Bound(model => model.LoginName).Width(100).Visible(false);
//columns.Bound(model => model.Address).Width(100).Visible(false);
// Add "Edit" and "Destroy" commands
columns.Command(command => { command.Edit(); }).Width(100);
})
.Pageable(pageable => pageable.ButtonCount(5))
.Sortable(sort => sort.Enabled(true))
.Filterable()
.Scrollable()
.Groupable()
// Add "Create" command
.ToolBar(commands => commands.Create())
// Set the edit mode to "PopPup"
.Editable(editable => editable.Mode(GridEditMode.PopUp))
.HtmlAttributes(new { style = "height:430px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(50)
.ServerOperation(false)
.Model(model => model.Id(p => p.ID))
.Create("InsertUser","ProductKendo")
.Update("UpdateUser","ProductKendo")
.Destroy("DeleteUser","ProductKendo")
.Read(read => read.Action("GetUserDataKendo", "ProductKendo")
)
) .Resizable(resize => resize.Columns(true))
)
when i send address field,grid doesn't show anything
Thanks