Disable hierarchy selection

Can we disable the default hierarchy selection on dropdowntree? Just like the built-in option for TreeGrid

enableHierarchySelection: false

Thanks,

6 Replies 1 reply marked as answer

KR Keerthana Rajendran Syncfusion Team August 26, 2020 09:36 AM UTC

Hi Richard, 

Thanks for contacting Syncfusion support.  

Yes, we have autoCheck property with EJ1 TreeView to disable hierarchy selection. You can set this autoCheck to false in treeViewSettings of DropDownTree. Refer to the following code. 

$('#itemList').ejDropDownTree({ 
                treeViewSettings: { 
                    showCheckbox: true, 
                    autoCheck: false
                    fields: { id: "id", parentId: "pid", value: "id", text: "name", hasChild: "hasChild", dataSource: localData, expanded: "expanded" } 
                }, 
                watermarkText: "Please select", 
                width: "100%" 
            }); 

Refer to the below sample for reference.  



Please let us know, if you need any further assistance. 

Regards, 
Keerthana.  



RD richard dimarucut August 26, 2020 09:52 AM UTC

Hi Keerthana,

Thanks on the quick response, I did not see that property on the https://help.syncfusion.com/api/js/ejdropdowntree#members:treeviewsettings documentation.

Thanks,
Richard


KR Keerthana Rajendran Syncfusion Team August 26, 2020 10:47 AM UTC

  
Hi Richard, 
 
We have integrated TreeView component within DropDownList to develop DropDownTree control. Just for an example, we have set few properties within treeViewSettings of DropDownTree in documentation. You can use any property of TreeView within this treeViewSettings. This is also documented in the provided link 
 
 
 
Please find the API reference for TreeView below 
 
 
Please let us know, if you need any further assistance.  
 
Regards, 
Keerthana.  



RD richard dimarucut September 1, 2020 01:08 PM UTC

Hi Keerthana,

Is there a way that we can keep the parent selected value retain on the selection when one of the child is deselected?


Thanks,
Richard


MK Muthukrishnan Kandasamy Syncfusion Team September 2, 2020 10:48 AM UTC

 
Hi Richard, 
 
We have validated and confirmed your reported problem as bug in DropDownTree component. We’ll fix this issue and include the fix in upcoming volume 3 release of 2020 which is expected to be rolled out by the end of September 2020. 
 
You can track the status through the below feedback portal link. 
 
 
We appreciate your patience. 
 
Regards, 
Muthukrishnan K 
 



KR Keerthana Rajendran Syncfusion Team October 1, 2020 06:21 PM UTC

Hi Richard, 
  
 We are glad to announce that our Essential Studio 2020 Volume 3 release v18.3.0.35 is rolled out and is available for download under the following link. 
  
  
 The issue with “Parent item value is not maintained with input when autoCheck property is set to false” is fixed and included in this release. Please find the sample link below. 
  
  
Please find the release notes link below. 
  
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
  
 Regards,           
Keerthana. 
 


Marked as answer
Loader.
Up arrow icon