0

I want to create a simple tree with two parent nodes using ExtJS. The root node will be invisible. The tree should look like:

+Invisible
|
|_A
|_B
+Visible
|
|_C
|_D

My query from the database is returning result in the following format

Description | IsVisible
A                  0
B                  0
C                  1
D                  1

I have seen examples online, for example(http://www.clintharris.net/2011/how-to-use-extjs-4-treepanels-with-both-static-data-and-model-stores/) but they all show creating tree dynamically with only one parent node whereas I need to create it for two parent nodes. Can anyone suggest how to do that?

1
  • Can you post your response from the server? Commented Dec 13, 2013 at 14:38

1 Answer 1

0

It all depends on the structure of the response that you are getting from the server.It will be easy to answer if u post ur server response ...

Sign up to request clarification or add additional context in comments.

Comments

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.