We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to disable parent selection in a dropdown tree and how to set already selected value for ejs-dropdowntree

Hi Team,

Issue 1:

I am using ejs-dropdowntree, the requirement is we need to disable selecting parent how can we do that

HTML file:

<ejs-dropdowntree #merchandisehierarchy id="merchHeirarchy" formControlName="merchHeirarchy" name="merchHeirarchy"
[fields]='field' [mode]='mode' [popupHeight]='150' (beforeOpen)="beforeOpen($event)"
[treeSettings]="treeSettings" popupHeight='220px' [popupWidth]='300' width="175px">
ejs-dropdowntree>


Here we need to disable selection for parent(Division,Department..) which are highlighted in the below mock up



Issue 2:

After saving the data while opening we need to set already saved value how can we do that.

can you please provide solution for these issues.


Thanks,

Lahari Navudu.


Loader.
Live Chat Icon For mobile
Up arrow icon