PDA

View Full Version : [CLOSED] Color field issues



sveins12
Sep 16, 2016, 4:19 AM
1. Is it possible to make the ColorField use color-values formatted with a hash in front? Like #00FF00 instead of 00FF00?

2. The ColorField seems to fail if the being used as an editor and the value is undefined or null.

fabricio.murta
Sep 16, 2016, 8:32 PM
Hello @sveins12!

Do you have a sample reproducing the issue with the colorfield? Did you find it in any specific example in our examples explorer (http://examples4.ext.net/)?

fabricio.murta
Sep 16, 2016, 8:48 PM
As for the color format, use this:



<CustomConfig>
<ext:ConfigItem Name="format" Value="#HEX6" />
</CustomConfig>


Possible values are documented here: ExtJS Documentation on ColorField - Format config option (http://docs.sencha.com/extjs/6.0.2/classic/Ext.ux.colorpick.Field.html#cfg-format).

sveins12
Sep 17, 2016, 7:54 PM
This solved issue 1. Thank you.

fabricio.murta
Sep 19, 2016, 9:40 PM
Hello @sveins12!

Maybe it would help if you could provide a test case highlighting the situation where the component breaks. I believe it is not really meant to deal with nulls, you should mingle the null values to a default color from code behind or data source. Besides, posting several questions in a single thread may become confusing. Whenever possible, maybe it would be easier for us to handle and provide you better response if we keep one question per forum thread.

fabricio.murta
Oct 10, 2016, 10:01 PM
Hello @sveins12!

It's been several days since your last feedback to this thread. Do you still need assistance with it?