Hey all,
I'm coming across some strange issues. In my "create" button on my kendo MVC grid (using the defaults for the grid, such as:
.ToolBar(commands => commands.Create()
1] I can't override the default width of the window with the "min size" properties, or any other html attributes to work when creating a window from the create / update button within a grid. I basically want it to be a square, 450x450, and can't accomplish this by adding in new { @style="height:450px; width:450px"} or the minHeight/minWidth property of the window inside my grid.
What do I do to get the popup-edit window in my grid to seize according to my definition?
2] In my grid, I have this:
.Editable(editable => editable.Mode(GridEditMode.PopUp)
.TemplateName("PolicyViewModel")
.Window(window => window.Title("Manage Policy"))))
In a SharedTemplate for the editor pop-up window, I have a couple of drop downs, e.g.:
@(Html.Kendo().DropDownListFor(m=>m.SourceId)
.SelectedIndex(0)
.DataTextField("Name")
.DataValueField("Id")
.Value(Model.SourceId.ToString(CultureInfo.InvariantCulture))
.BindTo(ViewBag.sources))
The drop down binds perfectly well, but on submitting the data, my selections (and defaults) are always ignored / never sent over the wire. I'm not too sure why at this point...
Why oh why is that the case? What am I doing incorrectly?
I'm coming across some strange issues. In my "create" button on my kendo MVC grid (using the defaults for the grid, such as:
.ToolBar(commands => commands.Create()
1] I can't override the default width of the window with the "min size" properties, or any other html attributes to work when creating a window from the create / update button within a grid. I basically want it to be a square, 450x450, and can't accomplish this by adding in new { @style="height:450px; width:450px"} or the minHeight/minWidth property of the window inside my grid.
What do I do to get the popup-edit window in my grid to seize according to my definition?
2] In my grid, I have this:
.Editable(editable => editable.Mode(GridEditMode.PopUp)
.TemplateName("PolicyViewModel")
.Window(window => window.Title("Manage Policy"))))
In a SharedTemplate for the editor pop-up window, I have a couple of drop downs, e.g.:
@(Html.Kendo().DropDownListFor(m=>m.SourceId)
.SelectedIndex(0)
.DataTextField("Name")
.DataValueField("Id")
.Value(Model.SourceId.ToString(CultureInfo.InvariantCulture))
.BindTo(ViewBag.sources))
The drop down binds perfectly well, but on submitting the data, my selections (and defaults) are always ignored / never sent over the wire. I'm not too sure why at this point...
Why oh why is that the case? What am I doing incorrectly?