in this page https://ej2.syncfusion.com/angular/documentation/grid/filtering/#excel-filter
explains how limit the number of rown in wich filters values are searched.
it didnt work for me, then i realise the FilterEventArgs interface didnt have the filterChoiceCount.
I import the FilterEventArgs from:
and the type for the filter setting is in excel
my package of angular grid and angular are:
|
actionBegin(args: FilterSearchBeginEventArgs) {
if (
args.requestType === 'filterchoicerequest' ||
args.requestType === 'filterSearchBegin'
) {
args.filterChoiceCount = 1;
}
}
|
Thankyou Very much.
Like you said, i made it work in a simple component, but i have and very complicated one and i only could make it work using the dataChange method.
i suposed it is due to this component has the dataSource like a suscription.
am i right??
|
actionBegin(args: FilterEventArgs) {
if (
args.requestType === 'filterchoicerequest' ||
args.requestType === 'filterSearchBegin'
) {
(args as FilterSearchBeginEventArgs).filterChoiceCount = 1;
}
}
|