Hi,
I'm using the grid with server binding and asp.net mvc.
When I click "add new item"-button to open popup editing, the window wont center on the screen.
As you see in image below it placed below the grid.
What have I done wrong?
Just for test I took one of your javascript demogrids and added to the page, and that one is centered when I click its button.
So the problem is just with mvc grid and server binding.
Regards,
Mattias
I'm using the grid with server binding and asp.net mvc.
When I click "add new item"-button to open popup editing, the window wont center on the screen.
As you see in image below it placed below the grid.
What have I done wrong?
@(Html.Kendo().Grid(Model.Items)
.Name("PlacesGrid")
.ToolBar(commands => commands.Create())
.DataSource(dataBinding =>
{
dataBinding.Server().Model(mod => mod.Id(x => x.ID))
.Create("Insert", "Place")
.Update("Update", "Place")
.Destroy("Delete", "Place");
})
.Editable(editing => editing.Mode(Kendo.Mvc.UI.GridEditMode.PopUp))
.Columns(columns =>
{
columns.Bound(x => x.Name).Title(Resources.Resource.PlaceName);
columns.Bound(x => x.IsPublished).Title(Resources.Resource.IsPublished)
.HeaderHtmlAttributes(new { @class = "center" })
.HtmlAttributes(new { @class = "center" });
columns.Bound(x => x.WebserviceUrl).Title(Resources.Resource.WebserviceUrl);
columns.Bound(x => x.CreateDate).Title(Resources.Resource.CreateDate).Format("{0:g}")
.HeaderHtmlAttributes(new { @class = "right" })
.HtmlAttributes(new { @class = "right" });
columns.Command(commands =>
{
commands.Edit();
commands.Destroy();
}).Width(200).Title("").HtmlAttributes(new { @style = "text-align:right" });
})
)
So the problem is just with mvc grid and server binding.
Regards,
Mattias