Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144487 | May 8,2019 04:28 PM UTC | May 15,2019 07:04 AM UTC | Angular - EJ 2 | 5 |
![]() |
Tags: Grid |
<ejs-grid #grid [dataSource]='data' [toolbar]='toolbar' allowPaging='true' allowFiltering='true' [editSettings]='editSettings' [pageSettings]='pageSettings' [filterSettings]='filterSettings' (actionComplete)="complete($event)">
<e-columns>
...
</e-columns>
</ejs-grid> |
...
export class AppComponent {
public data: Object[];
...
complete(args: any): void {
var button = document.createElement('button');
button.setAttribute('class', 'e-control e-btn e-lib e-flat');
button.setAttribute('cssClass', 'e-flat');
button.innerHTML = 'clear value';
args.filterModel.dlgDiv.children[1].append(button);
button.addEventListener('click', function (e) {
(document.getElementsByClassName('e-flmenu-valuediv')[0].children[0].children[0] as any).value = ""; //cleared the entered text
(document.getElementsByClassName('e-flmenu-valuediv')[0].children[0].children[1] as any).value = ""; //cleared the entered text
})
}} |
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.