1

I have this table:

Id  |  Name  |  Parent
------------------------
1   |  name1 |  null
2   |  name2 |  1
3   |  name3 |  1
4   |  name4 |  2

So the result would be:

|  name1  | 
---------------------
|  name2  |  name4  |
---------------------
|  name3  |

How do I pass this tree to View using recursion and how would it be displayed?

I checked other threads similar to my question, but none had a complete answer. Thanks

4

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.