Copied to clipboard

Flag this post as spam?

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


  • Jigs 40 posts 63 karma points
    Oct 04, 2011 @ 07:00
    Jigs
    0

    Does anyone know how to use Data type Grid in custom section ???

    Hi,

    I created the custom datatype in Datatype of Developer section which is  -- Data type grid type and i want to use it in my custom section edit page ....

    anyone know how to render this Datatype grid control to custom edit page like ... TinyMCE ....

    Any help would be appriciated ....

    Cheers,

    Jigs

  • Markus Johansson 1910 posts 5734 karma points MVP c-trib
    Oct 04, 2011 @ 07:12
    Markus Johansson
    0

    Have a look at this post http://our.umbraco.org/forum/developers/extending-umbraco/17750-Using-tinyMCE-in-custom-section

    You should be able to do the same thing but with your own custom data type?

  • Jigs 40 posts 63 karma points
    Oct 04, 2011 @ 07:34
    Jigs
    0

    Hi Markus,

    Thanks for your help ...but ...I also contributed in that post and if you remember i gave you the solution code for using RTE in custom section ........ and i know how to use tinyMCE in custom section ... but i dont know how to render DTG in custom section .....

    because they both derived from diffrent data editors............. also DTG has prevalue settings and prevalue data which i need to set before i initialize the object ...... but no joy .... not getting any result ..... What i need is the working example of how to use DTG in custom section ......

    cheers,

    jigs

     

  • Markus Johansson 1910 posts 5734 karma points MVP c-trib
    Oct 04, 2011 @ 08:24
    Markus Johansson
    0

    I see Jigs. I think i need more coffe! I'll keep you informed if I find something!

  • Jigs 40 posts 63 karma points
    Oct 05, 2011 @ 04:36
    Jigs
    0

    Hi all,

    OK i finally got the answer ..... I successfully render my Datatype Grid --- datatype in my custom section .....

    Cheers,

    Jigs

     

  • Yehonatan Anabi 9 posts 119 karma points
    Jan 14, 2016 @ 10:54
    Yehonatan Anabi
    0

    I managed to render the grid with this configuration: -

    View:

      <ng-include src="'/umbraco/views/propertyeditors/grid/grid.html'"></ng-include>
    

    Controller:

    $scope.model.config: {
                                items:{
    
                                    styles:[
                                        {
                                            label: "Set a background image",
                                            description: "Set a row background",
                                            key: "background-image",
                                            view: "imagepicker",
                                            modifier: "url({0})"
                                        }
                                    ],
                                    config:[
                                        {
                                            label: "Class",
                                            description: "Set a css class",
                                            key: "class",
                                            view: "textstring"
                                        }
                                    ],
                                    columns: 12,
                                    templates:[
                                        {
                                            name: "1 column layout",
                                            sections: [
                                                {
                                                    grid: 12,
                                                }
                                            ]
                                        },
                                        {
                                            name: "2 column layout",
                                            sections: [
                                                {
                                                    grid: 4,
                                                },
                                                {
                                                    grid: 8
                                                }
                                            ]
                                        }
                                    ],
    
    
                                    layouts:[
                                        {
                                            name: "Headline",
                                            areas: [
                                                {
                                                    grid: 12,
                                                    editors: ["headline"]
                                                }
                                            ]
                                        },
                                        {
                                            name: "Article",
                                            areas: [
                                                {
                                                    grid: 12
                                                },
                                                {
                                                    grid: 4
                                                },
                                                {
                                                    grid: 8
                                                },
                                                {
                                                    grid: 12
                                                }
                                            ]
                                        }
                                    ]
                                    }
    
                                }
                            }
    
  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Nov 15, 2013 @ 17:03
    Ali Sheikh Taheri
    0

    Hi Jigs

    I need to do the same, how did you manage to add RTE to DataType Grid?

    Cheers Alo

Please Sign in or register to post replies

Write your reply to:

Draft