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

Reorder column with color picker template


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


Attachment: ColorPicker_8068b2e.rar

1 Reply

JD Jayakumar Duraisamy Syncfusion Team 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 

Live Chat Icon For mobile
Up arrow icon