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.
Hi Maya,
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,
Nitesh
Hello Nitesh,
There's a sample attached to my previous response.
Please refer to it and let me know if you have any questions.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support
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
Hello Nitesh ,
I’ve attached a sample for your reference so that you may compare it with what you have in your application.
Pleas test it on your side and let me know if you’re aiming to achieve something similar.
Note that in order to reduce the size of the sample I’ve removed the Infragistics.Web.MVC assembly from the bin.
In order to run the sample please add it in the bin.
Let me know if you have any questions or concerns regarding it or if you have trouble running it.
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)