Jan 14, 2011, 1:00 AM
[CLOSED] [1.0] Dynamically format GridCommand cell and button
I am using the gridpanel to display and modify theme elements of a website. One column is a command column (ext:gridcommand) containing a hex triplet color code. When the grid loads, the cell displays the hex code in a button and the entire cell and button are the color represented by that code. The grid is loaded from a store and all actions/changes described below are done client side.
I need three things:
Attached is a screen shot of the gridpanel
thanks
I need three things:
- I need to align the button to the center of the cell.
- When the user clicks on the color cell button, I capture the color code in a color picker. The user can then change the color. I capture the change and write it back to the store. My problem is that I can't get the cell to update to the new data. It shows by flag that it is modified and if clicked upon again, the new value is sent to the color picker, but the old value is still displayed in the cell.
- I need to change the color of the font within the cell based on the color of the cell on load and "refresh" (referring to question 2). I have a javascript function which determines whether to use white or black font color depending on the color of the cell. Each cell can be a different color and must be changed individually
Attached is a screen shot of the gridpanel
thanks
Last edited by Daniil; Jan 20, 2011 at 9:47 AM.
Reason: [CLOSED]