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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reorder column with color picker template

Thread ID:





129818 Apr 5,2017 08:13 AM UTC Apr 6,2017 09:40 AM UTC JavaScript 1
Tags: ejTreeGrid
Mohamed Salah
Asked On April 5, 2017 08:13 AM UTC


I use color picker as template in grid and when reorder column it case some problem.


Attachment: ColorPicker_8068b2e.rar

Jayakumar Duraisamy [Syncfusion]
Replied On April 6, 2017 09:40 AM UTC

Hi Mohamed,                             
We regret for the inconvenience caused. 
We have analysed the reported issue with our sample, we are unable to reproduce the issue. And also we have prepared a sample with ejColourPicker in cells by using column template support and “queryCellInfo” client side event. 
Please find the code snippet below. 
<!--Column Template --> 
    <script type="text/x-jsrender" id="colorPicker">        
        {{if color}}<input type="text" id="colorPicker{{:taskID}}" class="e-cp" value="{{:color}}" />{{/if}} 
queryCellInfo: function (args) { 
                    // Applying color picker 
                    if (args.column.field == "color" && !ej.isNullOrUndefined(args.data.color)) { 
                        $(args.cellElement).find(".e-cp").ejColorPicker({ value: args.data.color, modelType: "palette" }); 
Can you please revert us by modifying these sample based on your application along with the replication procedure? This would be helpful for us to serve you. 
Please find the sample in following link, 
Please let us know if you require further assistance on this. 
Jayakumar D 


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

or the page will be automatically redirected to 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