BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Html.EnableUnobtrusiveJavaScript(true);
@(Html.EJ().Grid<ProjectMacroAreaViewModel>("MacroAreas") .Datasource((IEnumerable<object>)Model.MacroAreas) .AllowPaging() .EditSettings(es => es.AllowEditing(true)) .Columns(col => { col.Field("IdProjectMacroArea").IsPrimaryKey(true).HeaderText("Macro Area").Visible(false).Add(); col.Field("MacroAreaName").HeaderText("Macro Area").Add(); } ) .ChildGrid(child => { child.Datasource((IEnumerable<object>) Model.Tasks) .QueryString("IdProjectMacroArea") .AllowPaging() .EditSettings(edit => { edit.AllowDeleting().AllowEditing(); }) .ToolbarSettings(ts => ts.ShowToolbar().ToolbarItems(ti => { ti.AddTool(ToolBarItems.Edit); ti.AddTool(ToolBarItems.Delete); ti.AddTool(ToolBarItems.Update); ti.AddTool(ToolBarItems.Cancel); })) .Columns(col => { col.Field("IdProjectTask").Visible(false).IsPrimaryKey(true).Add(); col.Field("IdProjectMacroArea").Visible(false).Add(); col.Field("TaskName").Width("200px").Add(); col.Field("Units").HeaderText("Units").Width("80px").TextAlign(TextAlign.Center).Add(); col.Field("TaskCode").Width("80px").Add(); col.Field("StartDate").HeaderText("Start Date").Format("{0:dd/MM/yyyy}").Width("90px").Add(); col.Field("EndDate").HeaderText("End Date").Format("{0:dd/MM/yyyy}").Width("90px").Add(); }) .ChildGrid(fte => { fte.Datasource((IEnumerable<object>)Model.Ftes) .QueryString("IdProjectTask") .Columns(col => { col.Field("IdProjectTaskFte").Visible(false).Add(); col.Field("Country").HeaderText("Country").Add(); col.Field("Role").HeaderText("Role").Add(); col.Field("Hours").HeaderText("Hours x Unit").Add(); }); }); }) )
Hi Andrea,
Query 1: “workaround for the issue”
We would like to let you know that it is not feasible to provide workaround for this issue and we could not disable “UnObtrusive Javascript” for our Grid Control alone since in our current implementation the “UnObtrusiveJavascriptEnabled” in appSettings of Web.config file enables/disables UnObtrusive mode in all JS controls in the throughout application.
Query 2: “Script error throws and misalignment occurs while editing records”
We are able to reproduce this issue and we have logged defect report for this issue. We have provided defect information in the incident: 133747 and please follow up with incident for defect details.
Please let us know if you have any queries.
Regards,
Alan Sangeeth S
Hi Andrea,
Query 1: “workaround for the issue”
We would like to let you know that it is not feasible to provide workaround for this issue and we could not disable “UnObtrusive Javascript” for our Grid Control alone since in our current implementation the “UnObtrusiveJavascriptEnabled” in appSettings of Web.config file enables/disables UnObtrusive mode in all JS controls in the throughout application.
Query 2: “Script error throws and misalignment occurs while editing records”
We are able to reproduce this issue and we have logged defect report for this issue. We have provided defect information in the incident: 133747 and please follow up with incident for defect details.
Please let us know if you have any queries.
Regards,
Alan Sangeeth S
Hi Andrea,
Thanks for the update.
Please follow-up with the incident: 133747 for details regarding patch for issue “Heirarchy Grid with unobtrusive support”
Regards,
Alan Sangeeth S