I have a grid which has a custom popup editor. When the editor opens I need to know whether I am in Edit or Create mode.
.Editable(e=> e.Mode(GridEditMode.PopUp) .TemplateName("CompanyOwnersEditor") .Window(w => { w.Animation(false); w.HtmlAttributes(new { @class = "grid-popup-window" }); w.Name("companyOwnersEditor"); }) )
When I am in Edit mode my datasource for one of my DropDownList will be different than Create.
I am unable how to figure this out and Model is always null.