When placing two controls on a page - the filtering box in the second is not styled

I have 2 DropDown Tree controls - one under the other. They have filtering, select all and checkbox activated.

If I open one of them, the second to be opened looses the styles for the filter box.


<div class="control-section">
<div class="content" style="width: 280px;margin: 0 auto; padding-top:15px">
<ejs-dropdowntree
id="filter"
[fields]="fields"
[filterBarPlaceholder]="filterPlaceholder"
[popupHeight]="height"
[allowFiltering]="true"
[placeholder]="watermark"
></ejs-dropdowntree>
</div>
<div class="content" style="width: 280px;margin: 0 auto; padding-top:15px">
<ejs-dropdowntree
id="filter"
[fields]="fields"
[filterBarPlaceholder]="filterPlaceholder"
[popupHeight]="height"
[allowFiltering]="true"
[placeholder]="watermark"
></ejs-dropdowntree>
</div>
</div>



https://angular-hxdtir.stackblitz.io


3 Replies

IL Indhumathy Loganathan Syncfusion Team October 3, 2022 07:29 AM UTC

Hi Cosmin,


Greetings from Syncfusion support.


We have validated the reported issue in the Dropdown Tree component. The reported issue occurs due to the same id value being mapped for both the Dropdown Tree components. To resolve it, set a unique id value for each Dropdown Tree component. Check the below code snippet.


<ejs-dropdowntree

  #sample

  id="default"

  [changeOnBlur]="false"

  (change)="onChange($event)"

  [fields]="fields"

  popupHeight="220px"

  [allowFiltering]="true"

  placeholder="Select a folder or file"

></ejs-dropdowntree>

<ejs-dropdowntree

  #sample

  id="defaultone"

  [changeOnBlur]="false"

  (change)="onChange($event)"

  [fields]="fields"

  popupHeight="220px"

  [allowFiltering]="true"

  placeholder="Select a folder or file"

></ejs-dropdowntree>


Sample: https://stackblitz.com/edit/angular-fzzmhe?file=app.component.html,app.component.ts


Please check the sample and get back to us if you need any further assistance.


Regards,

Indhumathy L



CB Cosmin Budac October 3, 2022 12:51 PM UTC

Thanks,

This workaround seems to solve this issue.



IL Indhumathy Loganathan Syncfusion Team October 4, 2022 06:42 AM UTC

Hi Cosmin,


We are glad that your query has been resolved. Please get back to us if you need any further assistance.


Regards,

Indhumathy L


Loader.
Up arrow icon