i have a kendo grid with editing inline. Now, in a column, i want add a kendo colorpicker. How can i add it and show the selected color when the row isn't in the editing mode?
Anyone can give me any example with the colorpicker inside a kendo grid?
Thanks
As @dfsq said you have to use a cell template for showing the color. In addition you need to define a
columns.editor
for theColorPicker
.The code for the template is a function that generates a
div
which background color is thecolor
value from the Grid:For the
editor
you should define a function as:You can see an example here : http://jsfiddle.net/OnaBai/6XJV6/