I want to select a row from my igGrid and when submit button is clicked, I want that entire row to be passed down to the action method of the submit button. How can I do that ?
I have set features.Selection().Mode(SelectionMode.Row);
Is there a way to pass the entire row which was seleected to the action method or could i atleast get the id of the row selected.
Also is there a way other than using Jquery, Is there a .feature=> property through which we can pass the row or row id on button click. If not then please tell me how to do it through Jquery.
I need to know this urgently. Any help would be appreciated. also I have read the IgnitUi's website demo but still i cannot seem to achieve what i want .
If you could provide a short working sample , that would be great.
Thanks.
Can you please help me with this case :
CAS-137660-J4X4H9
QUERY:
Thread: http://ko.infragistics.com/community/forums/t/89780.aspx
I came across another issue, I want to enable editing in the lowest level of the model i.e the screen model and update it.
I specify the UpdateUrl at the end of the grid like this;
UpdateUrl(Url.Action("UpdateRoleRights")).AutoCommit(true)
Now when I modify the screen model (which is the lowest level of the model) and the update method is called I don't seem to get anything from the transactions;
List<Transaction<RoleRightsModel>> transactions = gridModel.LoadTransactions<RoleRightsModel>(HttpContext.Request.Form["ig_transactions"]);
But if I edit the top most level of the mode i.e the RoleRightsModel, I can get the transactions. How can I access the updated rows from the lowest level of the hierarchy? Thanks in advance.
That worked. thanks alot!
Hello zeppelin led,
Use the ClientEvents property of the feature. Here is an example:
Hope this helps,Martin PavlovInfragistics, Inc.
Hello ,
Earlier I wrote the code of Grid in my View (.cshtml) file and there i registered the rowSelectionChanged Client Event like this ->
In View (.cshtml)
.Features(features => { features.Selection().Mode(SelectionMode.Row).AddClientEvent("rowSelectionChanged", "rowSelectionChangedHandler"); ; })
NOW I have shifted all my grid code to the Controller and I am adding features of the grid in the cotroller's GridModel. I am making the grid model like this->
In Controller(.cs)
gridModel.Features.Add(new GridTooltips()); gridModel.Features.Add(new GridFiltering() { Type = OpType.Remote, Inherit = true}); gridModel.Features.Add(new GridSorting() { Type = OpType.Remote, Inherit = true }); gridModel.Features.Add(new GridPaging() { Type = OpType.Remote, Inherit = true, PageSize = 5 ,CurrentPageIndex=0,TotalRecordsCount=20 }); gridModel.Features.Add(new GridSelection() { Mode = SelectionMode.Row });
// How can i register the rowSelectionChanged Client Event to my "rowSelectionChangedHandler" in my controller file.
please if you could show me the code snippet that does that that would really help.
Thanks alot man. Thats what i was looking for.