Hi every body.
I need some help in this point, i can't take de value of a cell selected in my grid, i have this code:
$("#editarPais").live('igbuttonclick', function (e, args) { var cell = $('#gridPaises').igGridSelection('selectCell'); var dataview = $('#gridPaises').data('igGrid').dataSource.dataView(); var cellvalue = dataview[row.Index]["idPais"]; var url = '@Url.Action("Edit")'; $.ajax({ url: url, type: "POST", data: { id: cell }, success: function () { } }); });
this code is based in the example of infragistics page, but don't work.
i hope anybody helpme whit this problem.
thanks in advance!!
Hi,
When you want to get the selected cell value you have to use $('#gridPaises').igGridSelection('selectedCell');
selectCell is used whe you want to select a cell.
For more information about selection methods see:
http://www.igniteui.com/help/api/2015.2/ui.iggridselection
Hope this helps,
Nadia
thanks a lot Nadia.
One question more, this method return a objecto, right?, do you have an idea how i can take de id of this row, because i need send de id of a cell selected.
thanks in advance/
You can get the id of the row with:
var cell = $('#gridPaises').igGridSelection('selectedCell');
var dataview = $('#gridPaises').data('igGrid').dataSource.dataView();var cellRowId = dataview[ cell.rowIndex]["idPais"];
Thanks,
Hi Nadia,
How can we get the id of the row by selecting checkbox. And by giving Multiple Selection = false:in features of iggrid
Priyatham