Copied to clipboard

Flag this post as spam?

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


  • Vrushank 11 posts 61 karma points
    May 20, 2015 @ 15:12
    Vrushank
    0

    How to apply custom html template in grid

    Hi,

    I am NOOB to Umbraco.

    I have installed Umbraco 7.2.5 latest version.

    In that I have seen Grid Data type. its working fine. But it is applying custom template.

    I want to inject my html in it.

    I am confused how can it be done?

    Any help or suggestion would be appreciated.

    Thanks.

    Regards,

    Vrushank Shah

  • Mehul Gajjar 48 posts 172 karma points
    May 20, 2015 @ 15:15
    Mehul Gajjar
    100

    Hi Vrushank,

    you can render your html like below where "Bootstrap2" is your html (Bootstrap2.html)

    @Model.Content.GetGridHtml("testbody","Bootstrap2")

    This will directly map your data into grid layout

    Hope this will use full.

    Regards

    Mehul Gajjar.

  • Vrushank 11 posts 61 karma points
    May 20, 2015 @ 15:18
    Vrushank
    0

    Hi Mehul,

    Thanks for reply.

    This solve my issue.

    Regards,

    Vrushank Shah

  • Mehul Gajjar 48 posts 172 karma points
    May 20, 2015 @ 15:22
    Mehul Gajjar
    0

    Hi,

    Glad to hear that your problem is solve

    Cheers,

    Mehul Gajjar.

  • 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