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
close icon

Question regarding to auto-sorting of columns in ejPivotGrid

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

1 Reply

SP Sastha Prathap Selvamoorthy Syncfusion Team August 22, 2016 10:58 AM UTC

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. 


Loader.
Live Chat Icon For mobile
Up arrow icon