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.

Question regarding to auto-sorting of columns in ejPivotGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

125507 Aug 21,2016 08:44 PM Aug 22,2016 06:58 AM JavaScript 1
loading
Tags: ejPivotGrid
Myungjin Cho
Asked On August 21, 2016 08:44 PM

Hello Syncfusion, 
Currently the columns in the ejPivotGrid are auto-sorted in a some unknown order 

For example 
even if I add the row with the data 
the order of this data is auto sorted in a different way
the picture of the result of this script is enclosed with the thread 

var tempData_4 = [
{ weekend: "Mon", value: 1 }
, { weekend: "Wed", value: 2 }
, { weekend: "Thes", value: 3 }
, { weekend: "Fri", value: 4 }
, { weekend: "Thur", value: 5 }
, { weekend: "Sun", value: 6 }
, { weekend: "Sat", value: 7 }
];

                        $(function () {
                            $("#PivotChart").ejPivotGrid({
                                dataSource: {
                                    data: tempData_4,
                                    rows: [
                                        {
                                            fieldName: "weekend",
                                            fieldCaption: "weekend"
                                        }
                                    ],
                                    columns: [
                                        /*{
                                            fieldName: "columnValue",
                                            fieldCaption: "columnValue"
                                        }*/
                                    ],
                                    values: [
{
                                            fieldName: "value",
                                            fieldCaption: "value"
                                        }
                                    ]
                                }
//, enableGroupingBar: true
//, enableConditionalFormatting:true
//, enablePivotFieldList: false
//, enableDeferUpdate: true
//, enableJSONRendering: true
//, jsonRecords: JSON.stringify(tempData_4)
, enableSortOrder: false
/*,
                                isResponsive: true,
                                type: ej.PivotChart.ChartTypes.Column,
                                commonSeriesOptions: {
                                    enableAnimation: true,
                                    type: ej.PivotChart.ChartTypes.Column, tooltip: { visible: true }
                                },
                                size: { height: "460px", width: "950px" },
                                primaryYAxis: { title: { text: "등급별" } },
primaryXAxis: { title: { text: "구매건수-구매자수-성별-연령대" } },
                                legend: { visible: true },
                                load: "loadTheme"*/
                            });
                        });



Is there a way to disable the auto-sorting and customize the columns?
Thank you 



Attachment: 1asdfadf_dfbfb1d0.zip

Sastha Prathap Selvamoorthy [Syncfusion]
Replied On August 22, 2016 06:58 AM

Hi Maverick,

Thank you for using Syncfusion products.
 
We have created a new incident to log an issue report on behalf of you. We request you to follow with the incident for further details.
 
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
 
Regards, 
Sastha Prathap S. 


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.

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.

;