Telerik Forums
Kendo UI for jQuery Forum
1 answer
60 views

Can the fields (dimensions and measures) listed in PivotConfigurator be restricted, so that we can restrict to only those relevant for the end user

Thanks

Alex Hajigeorgieva
Telerik team
 answered on 01 Aug 2018
3 answers
157 views


Hello
I am trying to save kendo PivotGrid state for future load but I can't find a way to save/load the selected feilds (slices) using the "Fields to Include" menu along side with rows,columns and measures.

Is there any way to get and set selected fields in kendo PivotGrid?


Preslav
Telerik team
 answered on 12 Jul 2018
1 answer
198 views

Hello
I am trying to save PivotGrid state for future load.But I have a problen: The expand property of row items is not changed at run time. Test here https://dojo.telerik.com/@Mzand/obIkEdAY : When the user expands an item at runtime the expand property of the returned row by dataSource.rows() is the same as what it was at initialization. Isn't it data-binded? Is there a way to get the value?

 


Preslav
Telerik team
 answered on 03 Jul 2018
1 answer
186 views

Hi,

I have Multiple Column and Rows fields.

  • Column: Year (i.e 2018, stored as a int (tried DateTime and String also) and Month (i.e April, stored as DateTime)
  • Row: Name (i.e. Lee Stevens, stored as String) and Charge Type (i.e. Annual Leave, stored as String)

Now, when i sort ONLY the columns OR row, the results display as they should but when i want to Sort from both it "can't" I guess and gives up.

 

For example when i sort the Column (Year, Month)

sort: [
    {
        field: "Year",
        dir: "desc" //or asc
    },
    {
        field: "Month",
        dir: "asc" //or asc
    }
]

This work perfectly fine, It display the Year(s) (i.e. 2018, 2017, 2016) then the Months in order (I.e. Jan, Feb, March)

 

But as soon as i introduce the sorting the row also they then stop ordering correctly:

sort: [
    {
        field: "FullName",
        dir: "asc" //or asc
    },
    {
        field: "Year",
        dir: "desc" //or asc
    },
    {
        field: "Month",
        dir: "asc" //or asc
    }
]

The order becomes: 2017, 2019, 2018. Nov, Dec, April, Jan (they seem to loose there sorting?)

Any ideas?

Thanks,
Lee.

Konstantin Dikov
Telerik team
 answered on 16 Apr 2018
8 answers
192 views

hey, i'm ecaluating the pivot grid using the trial version. i seem to have problems getting angularjs and the pivot templates to work together.

my script imports in the index are as follows: 

  <script src="bower_components/jquery/jquery.js"></script>
    <script src="bower_components/angular/angular.js"></script>
    <script src="bower_components/kendo-ui/js/kendo.all.min.js"></script>

in the HTML page i have: 

    <div class="col-md-12" ng-if="vm.data.HeatChartSkillsPerResource && vm.data.HeatChartSkillsPerResource.length > 0">
        <kendo-pivot-grid  k-data-source="vm.dataSource" k-options="vm.options" id="pivotgrid" class="hidden-on-narrow">
            <div k-column-header-template>
                {{member.caption}}
            </div>
        </kendo-pivot-grid>

in the relevant controller: 

 

    vm.dataSource = new kendo.data.PivotDataSource({
                    data: vm.gridOptions.data,
                    schema: {
                        model: {
                            fields: {
                                FullName: {
                                    type: 'string'
                                },
                                skill_rating: {
                                    type: 'number'
                                },
                                skill_name: {
                                    field: 'Skill.SkillName'
                                },
                                Category: {
                                    field: 'Skill.Category'
                                }
                            }
                        },
                        cube: {
                            dimensions: {
                                FullName: {
                                    caption: 'Resources'
                                },
                                Category: {
                                    caption: 'Categories'
                                },
                                skill_name: {
                                    caption: 'Skills'
                                }
                            },
                            measures: {
                                'Average': {
                                    field: 'skill_rating', aggregate: 'average'
                                }
                            }
                        }
                    },
                    columns: [{ name: 'FullName', expand: true }],
                    rows: [{ name: 'Category', expand: true }, { name: 'skill_name', expand: true }],
                    measures: ['Average']
                });

 

        vm.options = {
            columnWidth: 100,
            height: 500,
            filterable: true,
            sortable: true,
            reorderable: false
        }

 

the data is loaded as expected but column header templates (or any other templates) don't recognize angularjs. what i see is {{member.caption}} inside the headers. (as in the attached file).

i don't see any errors.

any help on that?

Pavlina
Telerik team
 answered on 13 Feb 2018
17 answers
849 views
In the basic usage example, the transport read url is set to msmdpump.dll.

I am investigating how to secure access to msdmpump.dll from the client, and I think that the only way is to introduce a server-side (Web Api) service as an intermediary between msmdpump.dll and the client application. Is that correct?

Assuming it is, could you provide some guidance on how to implement Web Api to do this? 

Thanks!
Gary
Alex Hajigeorgieva
Telerik team
 answered on 18 Dec 2017
5 answers
267 views
When using a Plain JavaScript object containing Null Values, there are exceptions caused
by the PivotGrid. This is caused by line 620 in kendo.pivotgrid.js (Version 2015.1). On this line there is a check for undefined which can be extended to
check for null as well:

value = value !== undefined && value !== null ? value.toString() : value;

I was able to reproduce the error with the sample http://demos.telerik.com/kendo-ui/pivotgrid/local-flat-data-binding
when setting some Fields to null.

It is this behavior intended? For me, it seems like a bug that should be fixed

Stefan
Telerik team
 answered on 27 Sep 2017
1 answer
403 views

Hi,

I have found a problem when having text with ampersand in the data used for a pivot grid when expanding the row or column with that ampersand in the caption.  A JavaScript exception is caused in the browser (Chrome & IE).  The exception is "Uncaught TypeError: Cannot read property 'value' of undefined at init._buildRow" in kendo.all.js:73938.  The undefined object is dataItem.

I have encoded the ampersand using &amp; within the string at the datasource and whilst that is displayed correctly I believe the & within the encoded &amp; is still causing the exception.  I have tried using the rowHeaderTemplate and the row encoded property but neither seem to stop the error from occurring.  Is there another way I should be encoding this text so that it doesn't break the JavaScript code?

My original project is Kendo UI for MVC but I have created a dojo using the JavaScript version to re-create the problem.

dojo.telerik.com/@amdenley/OkEqIV/2

Alex Hajigeorgieva
Telerik team
 answered on 30 Jun 2017
1 answer
86 views

Hello.

Is there any way to export a large PivotGrid to a multipage pdf file?  PivotGrid PDF configuration doesn't seem to support "multiPage" setting.

For example, my grid can contain 150-200 columns and ~100 rows. Wondering if there is any way to save such a grid  as a set of A4 pdf pages.

Alex Hajigeorgieva
Telerik team
 answered on 22 May 2017
7 answers
459 views
Hi All, 

I have created a page using pivot table and I want to create a button that can expand all the rows and columns.
Do anyone here know how to do that?

Regards,

Rinaldi
Konstantin Dikov
Telerik team
 answered on 05 May 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?