DataMaps causing error with columns property changing

Posted by: slav on 17 June 2020, 2:22 am EST

  • Posted 17 June 2020, 2:22 am EST

    After moving to the new version of wijmo 5.20201.663 from 5.20193.637, columns that use DataMap feature cause this error when changing columns property:

    Uncaught TypeError: Cannot set property groups of # which has only a getter

    Here is an example application that reproduces the issue:

    wijmo-datamap-error.zip

    Thanks!

  • Posted 18 June 2020, 6:04 am EST

    Hello Slav,

    Is there a specific reason that you are updating the width of the column manually? The resize handler will automatically resize the column so there is no need to manually update the column.

    Regards,

    Ashwin

  • Posted 18 June 2020, 12:03 pm EST

    Hello Ashwin!

    No, there is no specific reason for that. That is just an example and the line with changing the width can be commented out, but that doesn’t change anything.

    Thanks!

  • Posted 19 June 2020, 5:06 am EST

    Hi Slav,

    If we remove the resizedColumn handler, the issue do not occur. But, still this seems to be a bug. So I have forwarded this issue to the developers with internal tracking id 441821. I will update you once this issue is fixed.

    ~regards

  • Posted 14 July 2020, 12:03 am EST

    Hi Slav,

    The developers have said that you should not set the columns by using the columns property. This is what causing the issue. If setting the columns property worked, it is just a coincidence. Instead, you may use the FlexGridColumn component to add columns.

    I have attached the updated sample which does not have the issue.

    ~regards

    datamap-updated.zip

Need extra support?

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

Learn More

Forum Channels