Js Tree Issue in mvc jsonResult

Guhananth S 1 Reputation point
2021-11-28T05:29:03.773+00:00

Hi
i have json result data from database. want to bind js tree view. how to do

mvc aspx page has
<input type="text" id="txtSearch">
<div id="MyClient">

in jsonResult i get data from db to create tree view.
structure of tree should look like
Kunal
-- ABC capital

  • 001Artica
  • 2938Bosco
  • 233Seema
    --CapitalMarket
  • 112CapitalResource
  • Kenny
    how to do using jstree
Developer technologies ASP.NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
    2021-11-30T06:00:00.397+00:00

    Hi @Guhananth S ,

    i have auto complete text box from that i need need to show js tree view . it is not normal textbox .

    Maybe you can explain your needs in more detail, or provide detailed code to better help you solve the problem.
    I think maybe you want to achieve this effect, you can refer to it.
    153582-jstree.gif
    the code:
    153613-jstree.txt
    153509-jstree.txt
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.