I've been fighting the entire morning with the aproved color picker in the grid layout. I want to use it for colomn or row background colors.
I have copied the colorpicker.html from the propertyeditor folder to the prevalueeditor folder. The problem is that I can't get it to display colors from a datatype "approved colors".
So I can get the prevalueeditor to show up in the grid settings. I just need something to point it to the approved colors to get the colors.
Frans, did you ever sort this out? I've added the below to a color picker prevalue but it shows the error "you have not configured any approved colours", which is actually different than the error specified in the view.
Unfortunately I don't have installed any website with this version of Umbraco, so I can't check it. I'm not sure why it's not working, maybe it's something related to your Umbraco version
Approved backgroundcolor grid layout
Hi all,
I've been fighting the entire morning with the aproved color picker in the grid layout. I want to use it for colomn or row background colors.
I have copied the colorpicker.html from the propertyeditor folder to the prevalueeditor folder. The problem is that I can't get it to display colors from a datatype "approved colors".
So I can get the prevalueeditor to show up in the grid settings. I just need something to point it to the approved colors to get the colors.
I can't beleave this isn't in the grid already.
Frans
Frans, did you ever sort this out? I've added the below to a color picker prevalue but it shows the error "you have not configured any approved colours", which is actually different than the error specified in the view.
Nope, I gave up.
The problem to me is that the colorpicker doesn't find the approved colors. I'm still hoping somebody sees this topic who solved this problem.
Frans
Same exact issue here Frans. I will post back here if I'm able to resolve it.
Thanks. Hope you do.
Did either of you ever find a solution to this?
Hi guys,
Today I had same problem as you guys, but I found solution. First in /Umbraco/Views/prevalueeditors/ you need to add new colorpicker.html file
Code of colorpicker.html file:
Find your Grid datat type and add JSON configuration (same configuration could be used for "Settings" and "Styles" configuration):
After you finish everything, you should be able to choose background color for Umbraco Grid rows and cells.
Hello Adis,
Thanks for the tip. But i have a problem. I see the predefined background colors, but i can not select one. When i click to a color nothing happens.
I'm using Umbraco version 7.7.4 assembly: 1.0.6505.22489.
Any ideas?
Hello Osman,
Unfortunately I don't have installed any website with this version of Umbraco, so I can't check it. I'm not sure why it's not working, maybe it's something related to your Umbraco version
Hello,
I managed to set background color with the package https://our.umbraco.org/projects/backoffice-extensions/grid-settings/
Thanks.
Thanks for sharing the solution Adis!!
You're welcome, hope it'll work in your case also :)
Bit late to the party :) but if you add:-
to the prevalueeditors colorpicker view it will show the selected color - so full code is:-
is working on a reply...