One of the requirement for us is to display the number of users found when the search is performed.
The search is currently using an external text box and a few other check boxes to control what need to be found.
So there is a need to display custom text describing how the search is performed.
Is there a way I can customize the 'No records display' or N of N pages (n items found) Text ?
Or get the number of records that matches to the search ?
I tried to see if grid.datasource.length will give me this count, but no luck
Also , is it possible to support multi word search to perform in a way that makes sense ?
For example: I have a grid with list of employees displayed and there is a external search box that can take the search text as "name= 'John', profession = 'IT Director'"
I would like the grid to look for specific column with specific words. Instead of looking at every column that is defined in the search settings with all the words.
|
[index.js]
var grid = new ej.grids.Grid({
dataSource: data,
allowPaging: true,
toolbar: ['Search'],
columns: [
----
],
actionComplete: actionComplete
});
grid.appendTo('#Grid');
function actionComplete(args) {
if (args.requestType == 'searching') {
// get the total records count after searching performed
var searchedRecords = this.pageSettings.totalRecordsCount;
alert(searchedRecords);
}
}
|