Welcome to the Angular feedback portal. We’re happy you’re here! If you have feedback on how to improve the Angular, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
using "@syncfusion/ej2-angular-grids": "^20.1.48"
DataStateChangeEventArgs.search have declared type PredicateModel[]; but at runtime, it actually is SearchSettingsModel[].
as declared (grid-model.d.ts)
/** Custom data service event types */
export interface DataStateChangeEventArgs {
// (...)
/** Defines the search criteria */
search?: PredicateModel[];
// (...)
}
but at runtime
/*** Interface for a class SearchSettings*/export interface SearchSettingsModel {/*** Specifies the collection of fields included in search operation. By default, bounded columns of the Grid are included.** @default []*/fields?: string[];/*** Specifies the key value to search Grid records at initial rendering.* You can also get the current search key.** @default ''*/key?: string;/*** Defines the operator to search records. The available operators are:* <table>* <tr>* <td colspan=1 rowspan=1>* Operator<br/></td><td colspan=1 rowspan=1>* Description<br/></td></tr>* <tr>* <td colspan=1 rowspan=1>* startswith<br/></td><td colspan=1 rowspan=1>* Checks whether the string begins with the specified string.<br/></td></tr>* <tr>* <td colspan=1 rowspan=1>* endswith<br/></td><td colspan=1 rowspan=1>* Checks whether the string ends with the specified string.<br/></td></tr>* <tr>* <td colspan=1 rowspan=1>* contains<br/></td><td colspan=1 rowspan=1>* Checks whether the string contains the specified string. <br/></td></tr>* <tr>* <td colspan=1 rowspan=1>* equal<br/></td><td colspan=1 rowspan=1>* Checks whether the string is equal to the specified string.<br/></td></tr>* <tr>* <td colspan=1 rowspan=1>* notequal<br/></td><td colspan=1 rowspan=1>* Checks for strings not equal to the specified string. <br/></td></tr>* </table>** @default 'contains'*/operator?: string;/*** If `ignoreCase` is set to false, searches records that match exactly, else* searches records that are case insensitive(uppercase and lowercase letters treated the same).** @default true*/ignoreCase?: boolean;/*** If ignoreAccent set to true, then filter ignores the diacritic characters or accents while filtering.** > Check the [`Diacritics`](../../grid/filtering/#diacritics/) filtering.** @default false*/ignoreAccent?: boolean;}