Hi,
I am just getting started with Kendo UI and am having trouble getting the Inline-Editing of a Grid to render properly when using the Html Helper (Html.Kendo().Grid<>()). Kendo seems to interfere with the default MVC 4 and MVC 5 styles even when I have a fresh "Kendo UI C#" project created right out of the box.
I am tempted to give up on the Html Helpers all together and use the JS only route using Json calls for every data load etc, but it seems I would have to do quite a bit more work.
I have attached a screenshot that shows the styling issues I mean. For instance all textboxes are 300px wide (which I believe is the MVC template default). How have you worked around this?
Thanks,
Matt
I am just getting started with Kendo UI and am having trouble getting the Inline-Editing of a Grid to render properly when using the Html Helper (Html.Kendo().Grid<>()). Kendo seems to interfere with the default MVC 4 and MVC 5 styles even when I have a fresh "Kendo UI C#" project created right out of the box.
I am tempted to give up on the Html Helpers all together and use the JS only route using Json calls for every data load etc, but it seems I would have to do quite a bit more work.
I have attached a screenshot that shows the styling issues I mean. For instance all textboxes are 300px wide (which I believe is the MVC template default). How have you worked around this?
@(Html.Kendo().Grid<
KendoUIMvcApplication1.Models.MyEntity
>(Model)
.Name("DefaultGrid").Editable()
.Columns( columns =>
{
columns.AutoGenerate(true);
columns.Command(command =>
{
command.Edit();
});
})
.DataSource(dataSource => dataSource
.Server()
.Model(model => model.Id(p => p.Id))
.Create("Create", "Home")
.Update("Update", "Home")
.Destroy("Delete", "Home"))
);
Thanks,
Matt