brasov2de / ColorfulOptionsetGrid

MIT License
34 stars 14 forks source link

Grid Column Without Text #4

Closed ArtKarp closed 4 years ago

ArtKarp commented 4 years ago

If I have a field that has an optionset just to select a color for the record, can i have that field be on the grid with no text? For example the optionset text is Red and it has a HEX color of red. If it is on the grid, there is no need to have the text "Red" and the background color be red. All I would want to see is a column that shows the color selected for each record without any text.

-Thanks Art

brasov2de commented 4 years ago

Hi @ArtKarp , I've thought at this when I've designed the control, but decided to postpone this. The problem is that I have to overwrite the width of these columns (will be really small columns, even if the view is not customized that way). But of course it's possible. The only real problem is to get a little time. Kind regards, Diana

ArtKarp commented 4 years ago

Would it be possible to have the text and background as the same color? This would accomplish the same thing.

Thanks

On Sun, Sep 13, 2020 at 12:52 AM Diana Birkelbach notifications@github.com wrote:

Hi @ArtKarp https://github.com/ArtKarp ,

I've thought at this when I've designed the control, but decided to postpone this.

The problem is that I have to overwrite the width of these columns (will be really small columns, even if the view is not customized that way).

But of course it's possible. The only real problem is to get a little time.

Kind regards,

Diana

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/brasov2de/ColorfulOptionsetGrid/issues/4#issuecomment-691630097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEB6ITFYVCVM3PYE5GZIF3SFR23VANCNFSM4RJDY3CA .

-- Sent from my mobile phone

brasov2de commented 4 years ago

Hi @ArtKarp , There is no problem to render only the icons, without text. The problem is that it won't look good anymore, because the column will be too big (with a lot of empty space). A workarround would be to customize the column in the view to be very smalll.. but then the standard grids won't look good. So I thought that, when the text shouldn't be shown, it should automatically shrink the width of the column. I try to get some time, to make this change.

Kind regards, Diana

brasov2de commented 4 years ago

Hi @ArtKarp , I've finally got some time to implement it. Hope you still need the feature. Kind regards, Diana