Copied to clipboard

Flag this post as spam?

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


  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 04, 2010 @ 13:35
    Kurniawan Kurniawan
    0

    using existing datatype control in custom edit page

    Hi,

    I m creating custom edit page for my own table.

    I want to use existing umbraco datatype control such as content picker , etc.

    is there any reference to do it?

    thx

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Nov 04, 2010 @ 14:33
  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 05, 2010 @ 05:24
    Kurniawan Kurniawan
    0

    http://www.nibble.be/?p=87

    nice this is what i need.

  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 05, 2010 @ 05:38
    Kurniawan Kurniawan
    0

    Sorry,

    http://www.nibble.be/?p=87

    Is that possible to use inside aspx instead of code behind.

     

    What is the different umbraco.uicontrol and umbraco.controls and /umbraco/controls inside of umbraco.presentations ?

     

    Thanks

  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 05, 2010 @ 06:14
    Kurniawan Kurniawan
    0

    Hi,

    I have try to use Content Control,

    But when I click on the inside the custom content, it fires the same javascipt to load the page.. instead of selecting them.

     

    Do you know how to do it ?

     

    Thanks

  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 05, 2010 @ 08:04
    Kurniawan Kurniawan
    0

    I have found it to fire the loader to set the value. it can close the dialog but just don;t show the value inside the control.
    Anyone know how to do it ?

    Here is the RenderJS Inside my custom loader

     public override void RenderJS(ref StringBuilder Javascript)
            {
                //bind javascript when node is clicked
                Javascript.Append(
                    @"
                        function openProductCategory(id)
                        {
                            parent.right.document.location.href = '/usercontrols/CMS/tree/editProductCategory.aspx?id=' + id;
                        }
                    ");



                if (!String.IsNullOrEmpty(this.FunctionToCall))
                {
                   
                    Javascript.Append("function openProductCategory(id) {\n alert('"+this.FunctionToCall+"');");
                    Javascript.Append(this.FunctionToCall + "(id);\n");
                    Javascript.Append("}\n");
                }
                else if (!this.IsDialog)
                {
                    Javascript.Append(
                        @"
                            function openProductCategory(id) { alert('not Dialog');
                                " + ClientTools.Scripts.GetContentFrame() + ".location.href = '/usercontrols/CMS/tree/editProductCategory.aspx?id=' + id;" + @"
                            }
                        ");
                }
                else
                {
                    //TODO: SD: Find out how what this does...?
                    Javascript.Append(
                        @"
                        function openProductCategory(id) {
                            alert('dialog');
                            if (parent.opener)
                                parent.opener.dialogHandler(id);
                            else
                                parent.dialogHandler(id);   
                        }
       
                    ");
                }
            }

  • 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