Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
555
ultratree with nodes having to columns
posted

We would like to display nodes with to separated values (name, description) in a ultratree,

where for example the second value is readonly or can be modified independently from the first and vice versa:

root

|

-- name description

    |

    -- name1 description1

    -- name2 description2

Our basic idea was to create nodes having to columns where the name value are put in col0 and description value are put in col1
We tried different variants using 


_tree.ColumnSettings.ColumnSets

but the tree not yet displays anthing.

Do you have a simple code snippet that shows how to fill the having to values per node

without binding a hole dataset to the tree, but adds the nodes recursively node by node

Thanks

Kagel

Parents
No Data
Reply
  • 555
    posted

    Hi Dimitar,

    works fine. Thanks regarding this Topic I have some additional questions

    1 do we have a more elegant way to assign a ColumnSet to any nod Level in a tree, instead of doing it for each level

     

    instead of

    ultraTree1.NodeLevelOverrides[0].ColumnSet = cs;

    ultraTree1.NodeLevelOverrides[1].ColumnSet = cs;

    ultraTree1.NodeLevelOverrides[2].ColumnSet = cs;

    but a Kind of

    ultraTree1.ColumnSet = cs; ??

    the tree Content is dynamic and can be nested very deep >15level ? and the columnsets are the same for each level

    2. we would have to assign a Icon to each node, can we do this the Grid ViewStyle ?

     

    3 the grid Header

    "Name"/"Description" should be hidden, and the cell editable how can we do this

    If we solve that we get a very useful snippet, Thanks in advance

Children