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.

property 'From' of undefined

Thread ID:

Created:

Updated:

Platform:

Replies:

121805 Jan 27,2016 05:29 AM Jan 28,2016 03:48 AM JavaScript 2
loading
Tags: ejPivotGrid
RI
Asked On January 27, 2016 05:29 AM

Hey Guys,

i´m trying to get the PivotGrid to work but i get this error:

ej.web.all.js:281425 Uncaught TypeError: Cannot read property 'From' of undefined


here a snippet from the code:

var pivot_dataset = [
        { Amount: 100, Country: "Canada", Date: "FY 2005", Product: "Bike", Quantity: 2, State: "Alberta" },
        { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Van", Quantity: 3, State: "British Columbia" },
        { Amount: 300, Country: "Canada", Date: "FY 2007", Product: "Car", Quantity: 4, State: "Brunswick" },
        { Amount: 150, Country: "Canada", Date: "FY 2008", Product: "Bike", Quantity: 3, State: "Manitoba" },
        { Amount: 200, Country: "Canada", Date: "FY 2006", Product: "Car", Quantity: 4, State: "Ontario" }
    ];

    $(function () {
        $("#PivotGrid").ejPivotGrid({
            dataSource: {
                data: pivot_dataset,
                rows: [
                    {
                        fieldName: "Country",
                        fieldCaption: "Country",
                    },
                    {
                        fieldName: "State",
                        fieldCaption: "State",  
                    }
                ],
                columns: [

                    {
                        fieldName: "Product",
                        fieldCaption: "Product",
                    }
                ],
                values: [
                    {
                        fieldName: "Amount",
                        fieldCaption: "Amount",
                    },
                    {
                        fieldName: "Quantity",
                        fieldCaption: "Quantity",
                    }
                ]
            }
        });
    });

Thank you in advance for your help.

Greetings

R.I

RI
Replied On January 27, 2016 06:34 AM

OK, got it.

There was an OrderBy in linq syntax but i didnt include the jquery.linq.js file

Ramesh Govindaraj [Syncfusion]
Replied On January 28, 2016 03:48 AM

Hi Ruzic,

Thank you for using Syncfusion products.

Please let us know if you have any query.

Regards,
Ramesh G.

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.

;