Hi,
I have a grid with server side paging and sorting. A search field is added where we execute
We have defined our data source as
The problem we faced is when we have some text in search box and if we do sorting by clicking a header it won't pass the search string. Therefore it will loose the search capability. Please let me know what can we do correct this problem.
Thanks
I have a grid with server side paging and sorting. A search field is added where we execute
$scope.mainGridOptions.dataSource.read(
{
data: $scope.searchText
});
We have defined our data source as
var
gridData =
new
kendo.data.DataSource({
transport: {
read: {
url:
"api/engagement/GetEngagementLists"
,
data: {
searchStr: $scope.searchText
},
type:
"GET"
,
contentType:
"application/json"
}
},
schema: {
data:
"Data"
,
total:
"Count"
,
errors:
"Errors"
},
error: (e) => {
console.log(
"error"
);
toastFactory.error(
"error"
);
},
pageSize: 10,
serverPaging:
true
,
serverSorting:
true
});
The problem we faced is when we have some text in search box and if we do sorting by clicking a header it won't pass the search string. Therefore it will loose the search capability. Please let me know what can we do correct this problem.
Thanks