Copied to clipboard

Flag this post as spam?

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


  • Ben McKean 260 posts 515 karma points
    Oct 23, 2012 @ 12:16
    Ben McKean
    0

    uComponents Multi-Node Tree Picker in Custom section

    Hi,

    I'm using a multi-node picker in a custom section but it doesn't seem to pick up the properties I'm setting. Could anybody shed some light?

    Here is my code

     

    <MultiNodeTreePicker:MNTP_DataEditor ID="CurriculumAreaMNTP" runat="server" ControlHeight="200" PropertyName="CurriculumAreas" StartNodeSelectionType="Picker" StartNodeId="-1"
    XPathFilterMatchType="Enable" ShowToolTips="false" XPathFilter="/*[self::CurriculumArea]"></MultiNodeTreePicker:MNTP_DataEditor>

     

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 23, 2012 @ 18:20
    Jeroen Breuer
    0

    I wrote this wiki a while ago: http://our.umbraco.org/wiki/reference/code-snippets/use-mntp-on-a-usercontrol. Don't know if it's still working.

    Jeroen

  • Ben McKean 260 posts 515 karma points
    Oct 24, 2012 @ 09:44
    Ben McKean
    0

    Thanks Jeroen.

    So does the MNTP need to be added in its own usercontrol? My code above was just in a normal web form page and is part of a larger form with logic etc. Would that not be possible?

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Oct 24, 2012 @ 09:46
    Jeroen Breuer
    0

    Yes you can also add it to a webform page. If you want to use that webform page in the umbraco backend it should have /umbraco/masterpages/umbracoPage.Master as the masterpage.

    Jeroen

  • Ben McKean 260 posts 515 karma points
    Oct 24, 2012 @ 10:26
    Ben McKean
    0

    In your example what datatype is .Nodes?

    _MNTPNodes = articleGroupEntity.Nodes;

    I have a List<string> of node IDS from my database but the prerender method doesn't seem to like this

  • Ben McKean 260 posts 515 karma points
    Oct 24, 2012 @ 10:35
    Ben McKean
    0

    No worries, I fixed it, changed the prerender method to use SelectedIds instead of XMLValue.

    Thanks for you help!

  • 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