- Home
- Forum
- ASP.NET MVC
- Hierarcy Grid with Unobtrusive support
Hierarcy Grid with Unobtrusive support
We considered this requirement “Heirarchy Grid with unobtrusive support” as bug and a support incident 133747 has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Alan Sangeeth S
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(); }); }); }) )
Errore: Impossibile recuperare la proprietà 'field' di un riferimento nullo o non definito
Errore: Impossibile impostare la proprietà 'colSpan' di un riferimento nullo o non definito
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
- 6 Replies
- 2 Participants
-
AP Andrea Perazzolo
- Jan 7, 2015 02:04 PM UTC
- Jan 12, 2015 11:55 AM UTC