"** Assertion failed in Wijmo: missing PivotKey for column..." in latest wijmo

Posted by: hanniewang on 21 August 2018, 1:34 pm EST

  • Posted 21 August 2018, 1:34 pm EST

    Hi team,

    I updated the wijmo version from 5.20173.380 to 5.20182.500, recently.

    However, in this version, when I add or delete columns using javascript scripts, there are some error information. And in the version 5.20173.380, there isn't this error.

    In my case: the PivotGrid's itemsSource is PivotEngine, then the grid add column automatically using javascript scripts according to user's action. It doesn't report error initializing,but it report error when it response user's action.

    And, I don't find anything about “PivotKey” in the website.

    This is Demo:
    index - Error.zip


    best regards,
    Hanny
  • Replied 21 August 2018, 11:51 pm EST

    Hi,
    We were able to replicate the issue at our end and hence it has been forwarded to the concerned team with internal tracking ID 340084.

    Till then you may clear the columns of pivotGrid before assigning new itemsSource to fix the issue.
    Please refer to the following code snippet:-
    gridPivot.columns.clear();
    gridPivot.itemsSource = gridEngine;


    You may also refer to the attached updated sample.

    ~Sharad

    index1 - Error.zip
  • Replied 23 August 2018, 5:04 pm EST

    Thank you sir, your reply resolved my problem.

    There's a bit of doubt about the style files in the new version, and I have to say that some changes have taken place in the style of the new version compared to the previous version, especially with respect to the padding properties of some controls. So, can I use the old version of the style file in the new version?

    I found that the new version of the style changed the class name.
    the class name of popup content in old version:
    <div class="wj-dialog-body wj-control wj-content wj-popup">popup content</div>

    the class name of popup content in new version:
    <div class="popover-content">popup content</div>

    refer to: https://demos.wijmo.com/5/PureJS/LearnWijmo/LearnWijmo/#e225vyns

    So could you tell me how the style changes relative to the old version?

    best regards,
    Hanny

  • Marked as Answer

    Replied 23 August 2018, 7:26 pm EST

    Hi,

    There are some changes in styles between old and newer version, however, class names are not changed from the previous version. So there should not be any issues with using your old style file with newer Wijmo version.

    We understand that the confusion arises due to the 'popover-content' class used in the sample but that class name used refers to the bootstrap 'popover-content' class, it is the same as using custom styling.
    For using default Wijmo styling, 'wj-dialog-header', 'wj-dialog-body' and 'wj-dialog-footer' class are provided in both the version.

    Hope this clears the confusion.

    ~Sharad
  • Replied 24 August 2018, 12:07 pm EST

    Thank you for your answer, it has been very helpful.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels