Self-Referencing Hierarchical Data

Self-Referencing Hierarchical Data

Old forum URL: forums.lhotka.net/forums/t/8436.aspx


alef posted on Friday, January 29, 2010

I have a table(CatagoryContainer) that is setup as something like:

CategoryId (PK)
ParentId (FK)
Name
Description
Active

There is a relationship between CategoryId and ParentId to allow for a hierarchical structure.

Category 1(ParentId:0)
Category 2(ParentId:1)
Category 3(ParentId:1)
Category 4(ParentId:1)
Category 6(ParentId:4)
Category 7(ParentId:4)
Category 5(ParentId:1)

I have the following use case:
End-user must have the possibility to create the hierarchy of these categories in a treeview.
So the user can add nodes and give a name to the category.
The user must also have the possibility to move nodes around.

Do you have an example how to implement this in CSLA.





zhoujg replied on Friday, January 29, 2010

you can refer to OpenExpressApp

st3fanus replied on Saturday, January 30, 2010

Hi .. I'm stefanus

I've faced this scenario..
Sorry before.. is there any reference that used english language ?

Thanks a lot

God Bless You

Copyright (c) Marimer LLC