0

I have populate the hierarchy data in the following structure.

Screen shot:

enter image description here

In this i want to perform the sorting. In this case i have the flat data object for rendereing. For Expample. I have rendering object as like

renderedobjects=[ {1,...},{2,....} ...];

And also i have tried with sorting by looping the renderedobject and each object have Level property . but it take more time to perform rearrange the rendered objects . Is there any other way to perform this sorting.

Update Screen shots: Screen shot 1: enter image description here

Screen shot 2: enter image description here

Screen shot 3: enter image description here

Update: Hi if it is possible please share the algorithm for perform hierarchial data sorting based on the indent level using recursive functions

4
  • Can you provide more detailed example of rendered object? How one level nested to another? Commented Nov 14, 2013 at 10:11
  • @kharandziuk i have attached the screen shot for renderedobject format .Please do the need full for this. Thanks in advance Commented Nov 14, 2013 at 10:28
  • What property of the object should be used to sort? Commented Nov 14, 2013 at 10:39
  • I have tried with sort TaskName (int type) Commented Nov 14, 2013 at 10:42

1 Answer 1

1

I have implemented TreeGrid by using a YUI example given below. Its pretty easy and has nice JSON pattern for data object.

http://jafl.github.io/yui2/treeble/

Hope this helps.

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.