Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Brännmark 220 posts 250 karma points
    May 24, 2010 @ 08:03
    Anders Brännmark
    0

    Children as table instead of rendering in tree?

    Remember seeing someone working on a datatype to render children in a table on the parent and not in the tree. but cant seam to find where I saw this. Anyone know what I'm talking about?

     

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    May 24, 2010 @ 10:24
    Dirk De Grave
    0

    Yes Anders, I know what you're talking about... 

    I do remember Niels (altho he's been denying it on twitter) has been working on something alike, but I don't think it ever made it in into the core, nor has it been released as a standalone package.

    Feel free to be the first to develop something similar...

     

    Cheers,

    /Dirk

  • Nik Wahlberg 639 posts 1237 karma points MVP
    May 24, 2010 @ 13:49
    Nik Wahlberg
    0

    Hi Anders,

    If all you're trying to do is to output a Grid of nodes, here's a quick and simle way t oaccess nodes as a table using umbraco.presentation.nodeFactory.

    GridView1.DataSource = Node.GetCurrent().ChildrenAsTable();
    GridView1.DataBind();

    HTH,
    Nik

  • Anders Brännmark 220 posts 250 karma points
    May 24, 2010 @ 14:27
    Anders Brännmark
    0

    Yes thats a good method for it, however I think I need the tree to be silent also. Can one trap the tree expand event perhaps? Niels did you work on this subject before, any pointers?

     

  • Nik Wahlberg 639 posts 1237 karma points MVP
    May 24, 2010 @ 14:42
    Nik Wahlberg
    0

    Can you describe in more detail what you're trying to accomplish (from a UI standpoint)? 

    Thanks,
    Nik

  • Anders Brännmark 220 posts 250 karma points
    May 24, 2010 @ 15:09
    Anders Brännmark
    0

    I would like to turn the tree of at certain documenttypes and render the children below as a table or similar on the parent node. Becuase the tree will become very large, more than 60 children. The datatype for displaying the children is of small problem, as long as the tree can be silent, but my guess is that it will requier a modification to the core?

  • Anders Brännmark 220 posts 250 karma points
    Jun 03, 2010 @ 08:22
    Anders Brännmark
    0

    Bumping, Can the tree rendering be overriden without changes in the core.

     

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jun 03, 2010 @ 09:57
    Richard Soeteman
    0

    HI Anders,

    Take a look at example 4 of this WIKI I wrote You could check the count of children an then disable the rendering. What I don't know is how to insert a node that contains the url of the page with datatable you want to show when you click on the parent node. I have to check or maybe someone else knows the answer.

    Cheers,

    Richard 

  • Anders Brännmark 220 posts 250 karma points
    Jun 03, 2010 @ 10:09
    Anders Brännmark
    0

    This looks like it might work, the nodes I dont want to dislay is of a certain document type so based on that I might be able to hide all pages of a certain doc type. Thanks for the pointer!

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies