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
525
How to select all the rows of grid in current page at once?
posted

Hello,

I have enabled paging and selection features in my Ignite Grid. I need to select/deselect all the rows of the grid on current page. I have implemented it as following:

Select All Rows: (I am not liking this approach)

               var rows = $("#gridId").igGrid("allRows");

                $.each(rows, function (row) {
                    $("#gridId").igGridSelection("selectRow", row);
                });

DeSelect All Rows: (this is better)

$("#gridId").igGridSelection("clearSelection");

I was wondering, if I can select all the rows in a better way instead of looping through all the rows one by one and selecting them. Is there a better/efficient way to select all the rows at once?

Regards,

Arfan Baig