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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hierarchial treeview with 2 levels of sub-children and adding a child dynamically

Thread ID:

Created:

Updated:

Platform:

Replies:

142724 Feb 16,2019 04:22 PM UTC Feb 21,2019 04:39 AM UTC ASP.NET Core - EJ 2 3
loading
Tags: TreeView
John Stephen Mangam
Asked On February 16, 2019 04:24 PM UTC

Hi,

1. Could you please send me an example of Hierarchial treeview with 2 levels of children as REMOTE Data?
2. Also, could you please let me know how I could add a new item on right click add option?

Country
{
Guid Id 
String Name
string State // Child
}

State
{
Guid Id 
String Name
string City// Child
}

City
{
Guid Id 
String Name
}

example:

India
-TamilNadu
---Chennai
---Coimbatore
-Karnataka
---Bangalore
---Mangalore

Thank you.

Christopher Issac Sunder K [Syncfusion]
Replied On February 19, 2019 11:38 AM UTC

Hi John, 

Thank you for contacting Syncfusion support. 

Here are the answers for your queries, 

Query-1 : Hierarchial treeview with 2 levels of children as REMOTE Data 
You can achieve this requirement in offline mode of the remote data. Please find the code snippet 
 
<e-treeview-fields id="id" text="name"> 
    <e-data-manager url="/Treeview/GetAllData" adaptor="ODataV4Adaptor" crossDomain="true" offline="true"></e-data-manager> 
</e-treeview-fields> 
 
Query-2Adding a new item on right click add option 
You can achieve this by integrating context menu in your application. You can add the ‘New Item' in the 'select’ event of context menu. We have prepared the sample based on the above queries. Please check the sample from the following link 


Please let us know if you require any further assistance. 

Thanks, 
Christo

John Stephen Mangam
Replied On February 20, 2019 05:34 AM UTC

Thanks a lot, Christopher.


Silambarasan I [Syncfusion]
Replied On February 21, 2019 04:39 AM UTC

Hi John, 
 
Thanks for your update. Please check the provided solution and get back to us if you require further assistance on this. We are happy to help you out. 
 
Regards, 
Silambarasan 


CONFIRMATION

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon