Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
545
igrid row selector with check box problem need urgent help
posted

Hi 

i am using infragistics iggrid 2013.1 and my grid has features pagination filter sorting etc i want to implement row selector with check boxes.

i am able to successfully provide that feature but i was facing a problem that at the time of filtration or sorting that i was loosing the information of selected rows. for that i am using 

selectedRows = $("#prodByMeaInfra").igGridSelection("selectedRows") and

for (i = 0; i < selectedRows.length; i++) {

selectedRowsIds.push(selectedRows[i].element.attr("data-id"));

}

 and keeping selected rows information with me  and at the time of grid rerender

$("#prodByMeaInfra").on("iggriddatarendered", function (event, args) {
for (i = 0; i < selectedRowsIds.length; i++) {
$("#prodByMeaInfra").igGridSelection("selectRow", $("#prodByMeaInfra").find("tr[data-id='" + selectedRowsIds[i] + "']").index());
}
});

i am using this to select the row back and its working perfectly in filtration and sorting  but now i am facing problem at grid pagination when i am selecting some row at first page and going to second page and selecting some row 

selectedRows = $("#prodByMeaInfra").igGridSelection("selectedRows") 

the above code give me correct no of rows but when i come to this code

for (i = 0; i < selectedRows.length; i++) {

selectedRowsIds.push(selectedRows[i].element.attr("data-id"));

}

its give selectedRows[i].element.attr("data-id") as undefined for last selected page rows.
Please tell me how can i handle that.
Please help me on urgent basic its stopping my product release.
Thanks
Vivek 


Parents Reply Children
No Data