We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid whit color picker

Thread ID:





150698 Jan 16,2020 02:48 PM UTC Jan 17,2020 09:36 AM UTC JavaScript - EJ 2 1
Tags: Grid
Alex Siler
Asked On January 16, 2020 02:48 PM UTC

Hi, I have the following problem with the color picker template. When you edit a row there are no problems with the control, but when I stop editing the row I can't make the control render and it remains in read-only format to show the selected color. Can I do that?  


Best regards

Thiyagu Subramani [Syncfusion]
Replied On January 17, 2020 09:36 AM UTC

Hi Alex, 

Greetings from Syncfusion forum. 

We can achieve your requirement “Grid whit color picker” using rowDataBound event. Please  refer to the below code and sample link. 

function rowBound(args) { 
  if (args.data.color != undefined) { 
    args.row.cells[2].innerHTML = ""; 
    var cell = document.createElement('input'); 
    cell.id = "check"; 
    cell.type = "color"; 
    var colorObj = new ej.inputs.ColorPicker({ 
      value: args.data.color,  // you can set properties here.. 
      disabled: true 

Help documentation link. 

Please get back to us, if you need any further assistance. 

Thiyagu S 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon