Copied to clipboard

Flag this post as spam?

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


  • marthin 87 posts 106 karma points
    Oct 01, 2010 @ 10:38
    marthin
    0

    Tree Control in modal

    Hi,

    Im triyng to open a custom Tree in a modal in my custom section. I get the modal correct but the tree is not renderd. This is my code.


    <%@ Register TagPrefix="umb" TagName="tree" Src="~/umbraco/controls/Tree/TreeControl.ascx"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitled Page</title>
    </head>

    <script src="/umbraco_client/ui/default.js" type="text/javascript"></script>
    <script src="/umbraco_client/ui/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
    function dialogHandler()

    alert("klicked");
    }
    </script>

    <script type="text/javascript">


    </script>

    <body>
    <form id="form1" runat="server">

    <umb:tree runat="server" ID="TreePickerControl"
    App="ProductList" Mode="Standard"
    DialogMode="id" ShowContextMenu="false"
    IsDialog="true" TreeType="content" FunctionToCall="dialogHandler"/>


    </form>
    </body>
    </html>

    Does anyone know why this isnt working? Should i use some other TreeType? Can i make a custom TreeType?(link?). I have just changed to working with 4.5 so im trying to remove the iframe that i hade before that included the TreeInit.aspx.

    What the modal is supposed to do is to render my custom tree where i whant to select a node and get that nodeId and do some stuff with it.

    Thx for any help guys!

    Best Regards

    Marthin

  • marthin 87 posts 106 karma points
    Oct 04, 2010 @ 10:40
    marthin
    0

    Isnt there anyone that has solved this kind of problem?

Please Sign in or register to post replies

Write your reply to:

Draft