Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147146 | Sep 3,2019 07:55 AM UTC | Oct 4,2019 08:38 AM UTC | Angular - EJ 2 | 2 |
![]() |
Tags: Grid |
ngOnInit() {
this.filter = {type: 'CheckBox'/*, columns: [{field: 'State', matchCase: false, operator: 'equal', predicate: 'and', value: 'true'}]*/};
this.filterSettings = {
type: 'Menu',
columns: [{field: 'Active', matchCase: true, operator: 'equal', predicate: 'and', value: true}]
};
this.toolbar = ['Search'];
this.data = new DataManager({
url: `${this.baseUrlApi}/api/crm/PersonnesView`,
adaptor: this.oDataAdaptor
});
}
<ejs-grid #grid [allowFiltering]='true' [allowPaging]='true' [allowSelection]='false' [allowSorting]='true'
[dataSource]='data' [enableHover]='true' [filterSettings]='filterSettings' [pageSettings]='pageSettings'
[toolbar]='toolbar'>
<e-columns>
<e-column field="IdIndividu" headerText="Id"></e-column>
<e-column field="Nom" headerText="Nom"></e-column>
<e-column field="Prenom" headerText="Prénom"></e-column>
<e-column [filter]='filter' field="Active" headerText="Actif"></e-column>
<e-column [filter]='filter' field="Etat" headerText="Etat"></e-column>
</e-columns>
</ejs-grid>
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.
This page will automatically be redirected to the sign-in page in 10 seconds.