External search implementation on Tree grid

Hi 


I want to explement the external search while typing in angular tree grid  . but it is not working below is my code : 

in html : 

   <input type="text" name="txtSearch" placeholder="Search"  (keyup)="onSearch($event.target.value)" class="ps-1 form-control">

in TS file: 

the result is showing undefined on search . 


 onSearch(searchText: string = null) {
    this.treeGridObj.search(searchText);
     console.log(searchText);
  }

1 Reply

PS Pon Selva Jeganathan Syncfusion Team April 7, 2022 02:21 PM UTC

Hi Dileep,


Thanks for contacting syncfusion forum.


Query: I want to explement the external search while typing in angular tree grid . but it is not working below is my code


We checked your query by preparing sample based on your code example, but we were unable to reproduce the issue at our end.


Please refer to the below sample,

https://stackblitz.com/edit/angular-epkddi-4rsiav?file=app.component.html


After following the above reference, still faced issue please share us the following details.


  1. Share the complete TreeGrid code example(both ts and html)
  2. share your product version details.        
  3. Share the issue reproducible sample or reproduce the issue in our shared sample.
  4. Share the stacktrace details(if face any)


The provided information will be helpful to provide you response as early as possible. 


Regards,

Pon selva


Loader.
Up arrow icon