We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

(Urgent) How to get filtered data for all pages on select all checkbox event

Thread ID:





121858 Feb 2,2016 07:30 AM UTC Feb 3,2016 01:51 PM UTC JavaScript 1
Tags: ejmGrid
Asked On February 2, 2016 07:30 AM UTC

I want filtered data on click of select all checkbox for javascript grid.
I got either all data on headCheckChange event or records on currentView data but I want all filtered records which are present on all pages.
How to get it ..?

I have attached link for that:  http://jsplayground.syncfusion.com/a0rnnkmv

Jayaprakash Kamaraj [Syncfusion]
Replied On February 3, 2016 01:51 PM UTC

Hi Gomtesh,
We have analyzed your requirement and achieved using datamanager executeQuery property. Please refer to the below code example, help documentation and sample.
Code Example:
  function headCheckChange(e) {
                $("#Grid .rowCheckbox").ejCheckBox({ "change": checkChange });
                gridObj = $("#Grid").data("ejGrid");
                var pager = gridObj.model.pageSettings;
                if ($("#headchk").is(':checked')) {
                    $(".rowCheckbox").ejCheckBox({ "checked": true });
                    gridObj.multiSelectCtrlRequest = true;
                    gridObj.selectRows(0, pager.pageSize);
                                                                                // To Select all rows in Grid Content
                                                                                var queryClone=$.extend(true,{},gridObj.model.query)
                                                                                for( i=0;i<queryClone.queries.length;i++){
                                                                                if(gridObj.model.query.queries[i].fn == "onPage")
                                                                                delete gridObj.model.query.queries[i];
                var queryPromise = gridObj._dataSource().executeQuery(gridObj.model.query);
                                                                var proxy = gridObj;
                queryPromise.done(ej.proxy(function (e) {
                                                                var filterrecords = e.result;

Help Documentation: http://help.syncfusion.com/js/datamanager/query
Sample: http://jsplayground.syncfusion.com/5adiwrwh
Jayaprakash K.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon