Copied to clipboard

Flag this post as spam?

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


  • Jake 7 posts 87 karma points
    Nov 20, 2019 @ 14:38
    Jake
    0

    Add an id tag to a grid layout item

    Hi,

    Within one instance of my grid I have 3 rows and 3 columns surrounded by a div with the class pre-col. This class was added by editing the bootstrap3.cshtml under partial grid views.

    My issue is that I need, on the same div as the class pre-col, an id selector. Obviously this cannot be set in the partial view as the id would be the same for every instance of the grid.

    From the content tab I am able to apply a css class to the grid instance however I can't find a way to add an id in this way. Is there a workaround?

    Additionally, I need to be able to add an onclick tag. Alternatively, I may need to add data-target and data-toggle tags if the former isn't possible.

    Thanks.

  • B. Gunnarsson (Bryns) 25 posts 180 karma points c-trib
    Nov 20, 2019 @ 16:46
    B. Gunnarsson (Bryns)
    100

    You can find this here: Settings > Data Types > [Your grid datatype] (v8) Developer > Data Types > [Your grid datatype] (v7)

    You add the settings there and then handle the rest in your view.

    I hope this is what you're looking for.

    enter image description here

  • Jake 7 posts 87 karma points
    Nov 21, 2019 @ 08:43
    Jake
    0

    Perfect, thanks! I wasn't aware you could add any tag from there.

  • B. Gunnarsson (Bryns) 25 posts 180 karma points c-trib
    Nov 21, 2019 @ 10:26
    B. Gunnarsson (Bryns)
    0

    You're welcome, happy coding! :)

Please Sign in or register to post replies

Write your reply to:

Draft