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.
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.
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.
Perfect, thanks! I wasn't aware you could add any tag from there.
You're welcome, happy coding! :)
is working on a reply...