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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reorder column with color picker template

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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

Regards, 
Mohamed

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}} 
    </script> 
 
$("#TreeGridContainer").ejTreeGrid({ 
//… 
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. 
Regards, 
Jayakumar D 


CONFIRMATION

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.

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

;