Hi Team
I am using infragistics 2013.1 version grid and i am trying use rowselector feature and i am trying to select some rows and checked the checkbox from backend based on some data can you help me how we can do that.
i am giving you my sample code which i am trying to do but its not working
$("#prodByMeaInfra").on("iggriddatarendered", function (event, args) { $scope.$apply(function () { args.owner.element[0].rows[0].cells[0].innerHTML = "<span class=\"ui-state-default ui-corner-all ui-igcheckbox-normal\" name=\"hchk\" data-role=\"checkbox\" data-chk=\"on\"><span class=\"ui-icon ui-icon-check ui-igcheckbox-normal-on\"></span></span>"; }); });
or is there any way to keep the checked box state in same state at the time of using filter or sorting.
Please help me on this on urgent basis
Thanks
Vivek
Hi Stamen
Sorry to say you But i am facing some problem in solution which is suggested by you and need your help.
My grid has pagination feature and when selecting some items in first page and going to second page the code
selectedRows = $("#prodByMeaInfra").igGridSelection("selectedRows")
is giving me correct no of rows selected but
when i am using this
for (i = 0; i < selectedRows.length; i++) {
selectedRowsIds.push(selectedRows[i].element.attr("data-id"));
}
for the first page items selectedRows[i].element.attr("data-id") is coming as undefined due to that its not able to keep track of last page selected item.
Please provide me some solution for that its stopping my product release.
Thanks Stamen
Its worked perfectly for me.
Hello Vivek,
This should be controlled by the compactRenderingMode option of Summaries. However, it is true by default and the single summary for each row should be shown on the same line. Could you please check if changing it to true or 'auto' makes a difference? If it doesn't it could be an issue in the control itself which will have to be logged and resolved with a service release.
Best regards,
Stamen Stoychev
Thanks stamen
sorry to disturb you once again actually i am trying row summaries and our client want something like for one column total and one column for average.
even i tried that and i am able to get that there is one problem one that i am getting total on one row and and average on one row, my question is is there any possibilities to make both summaries in one row for your reference i am attaching one screen shot in post.
Please help me on this.
Your solution looks great! Good luck with your project!