Thanks so much for this. It was exactly what I needed.
I hit a bit of a snag using it in an editable grid though.
When I try to choose a color, the editable cell loses focus and the colorfield disappears.
I am still able to choose a color but it doesn't get set in the editable cell.