Hi,
i am using MVC igHierarchicalGrid VS 2012 framework, i am getting issue when i am clicking any cell and changing the content.
i am expecting the control will hit EditingDataSetMvcHelper() method. but it's not working.
i am new to Ignite can any one help me on this.
My requirement is i want to load and edited content on my controller in MVC.
Updateurl(Url.Action("editing-dataset"))
[GridDataSourceAction] [ActionName("editing-dataset")] public ActionResult EditingDataSetMvcHelper() { var categoriesProducts = this.CategoriesProducts; return View("editing-dataset", categoriesProducts); }
Below Sample code is working fine for Load:
@(Html.Infragistics().Grid<System.Data.DataSet>() .ID("grid1") .Width("100%") .AutoGenerateColumns(true) .AutoGenerateLayouts(true) .Features(features => { features.Paging().PageSize(5).Type(OpType.Remote).Inherit(false);
features.GridEditing().EditMode(GridEditRow.cell); features.Selection().Mode(SelectionMode.Row).MultipleSelection(true); features.Hiding().Inherit(true); })
.PrimaryKey("ID") .DataSource(Model) .DataSourceUrl(Url.Action("dataset-binding"))
.Updateurl(Url.Action("editing-dataset"))
.DataBind() .Render()
Controller Code:-Debugger is hitting this method on load
[GridDataSourceAction] [ActionName("dataset-binding")] public ActionResult DataSetMvcHelper() { var categoriesProducts = this.CategoriesProducts; return View("dataset-binding", categoriesProducts); }
Is there any thing i am missing or any other approach to achieve this functionality.
Hello niteshghosh ,
Thank you for posting in our forum.
By design the changes are not directly committed to the server until the “saveChanges” method is called for the grid. For example:
$( "#grid1" ).igHierarchicalGrid( "saveChanges" );
Until the saveChanges method is explicitly called, no request will be made to the server.
Once the method is called a request will be made to the url set in the UpdateUrl setting of the grid.
You can refer to the following example here:
http://www.igniteui.com/hierarchical-grid/editing-dataset
The “saveChanges” method is called on the button’s click event and only then a request is made to the server to update the data.
Let me know if you have any questions.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support
Hi Maya,
Thanks for time to looking in to this issue.
i tried with that example but still i am not getting that functionality.
Am i missing any API call or any referenced dll which is required for the UpdateUrl()
i have added listed script and CSS from example and infragistic dll (infragistic.web.mvc)
Thanks
Nitesh
Can any one help me out for this issue i tried all posible solution but UpdateUrl(Url.Action("EditSaveChanges")) is not triggring in controller Method.
please attach sample application if possible, with list as a datasource.
Thanks for the sample it's works fine now.
i compared with my application and found that there is one section columnlayout which i was not populated to grid and the primarykey for which i was getting issue.
Thanks,
Hello Nitesh,
There's a sample attached to my previous response.
Please refer to it and let me know if you have any questions.