Hi Guys, I found a wierd behavior on my grid:
If I enable my Event, once I click on add Button, the whole page is raplaced by the result of the action/controller in the href of the anchor
say "/DomainValue/Details/2?valueGrid-mode=insert" (that would be the grid itself)
While if I disable the event, I get my inline add with no issue....
Am I doing somthing wrong??
I need the event because I somehow need to have the hidden value (DOMAINID) set to the same of the other lines. The problem is that my grid change based on another control; pratically this grid displays the values of some domain tables; so the Id Have to be fixed and it cannot be fixed as a default value in the model scheme.
thanks
Fabio
@(Html.Kendo().Grid<MyEntity>(Model) .Name("valueGrid") .ToolBar(commands => commands.Create().Text("Add new value")) .Columns(columns => { columns.Bound(c => c.DOMAINID).Visible(false); columns.Bound(c => c.CODE); columns.Bound(c => c.VALUE); columns.Command(command => { command.Edit().UpdateText("Save"); command.Destroy().Text("Delete"); }); }) //.Events(e => e.SaveChanges("OnSaveChanges")) .Sortable() .Scrollable() .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) .Model(m => m.Id(v => v.DOMAINID)) .Update(update => update.Action("UpdateValue", "DomainValue")) .Create(create => create.Action("CreateValue", "DomainValue")) .Destroy(delete => delete.Action("DeleteValue", "DomainValue")) ) )If I enable my Event, once I click on add Button, the whole page is raplaced by the result of the action/controller in the href of the anchor
say "/DomainValue/Details/2?valueGrid-mode=insert" (that would be the grid itself)
While if I disable the event, I get my inline add with no issue....
Am I doing somthing wrong??
I need the event because I somehow need to have the hidden value (DOMAINID) set to the same of the other lines. The problem is that my grid change based on another control; pratically this grid displays the values of some domain tables; so the Id Have to be fixed and it cannot be fixed as a default value in the model scheme.
thanks
Fabio