Bug Report T1267827
Visible to All Users

Uncaught TypeError occurs on an attempt to set a chart's series

created 4 months ago

Steps to reproduce:

  1. Go to the following demo: https://demos.devexpress.com/ASPNetCore/Demo/Reporting/Charts/;
  2. Open a designer;
  3. Follow the steps from the attached screencast.

Additional information:

Call Stack
reporting.thirdparty…CDDUVwDVmYqFzaJR4:6 Uncaught TypeError: Unable to process binding "dxSelectBox: function(){return{dataSource:e.$data.generateViewItems(),itemTemplate:"stateItem",valueExpr:"value",value:e.$data.generateHeaderValue(e.$root.undoEngine),displayExpr:"displayValue",disabled:e.$data.disabled,dropDownOptions:{container:e.$root.getPopupContainer(t)},useItemTextAsTitle:!0}}" Message: e.$data.generateViewItems is not a function at dxSelectBox (designer.part.bundle…tYE2SyeY:37:1277607) at l (reporting.thirdparty…DVmYqFzaJR4:6:34792) at reporting.thirdparty…DVmYqFzaJR4:6:36213 at viewer.part.bundle.m…IpuqhqdM:19:3204205 at Function.yd (reporting.thirdparty…DVmYqFzaJR4:6:24882) at Function.zd (reporting.thirdparty…DVmYqFzaJR4:6:24575) at Function.ha (reporting.thirdparty…DVmYqFzaJR4:6:24406) at s.o.s.$ (reporting.thirdparty…DVmYqFzaJR4:6:23165) at t.onInitializing (viewer.part.bundle.m…IpuqhqdM:19:3204165) at t._createOptions (viewer.part.bundle.m…IpuqhqdM:19:2865869)
Comments (2)

    Anyone have a solution? Seeing the same thing on chart -> series section.

    JavaScript
    code-to-inject.js:46 TypeError: Unable to process binding "dxSelectBox: function () { return { 'dataSource': $context.$data.generateViewItems(), 'itemTemplate': 'stateItem', 'valueExpr': 'value', 'value': $context.$data.generateHeaderValue($context.$root.undoEngine), 'displayExpr': 'displayValue', 'disabled': $context.$data.disabled, 'dropDownOptions': { 'container': $context.$root.getPopupContainer($element) }, 'useItemTextAsTitle': true }; }"
    TypeScript
    Message: $context.$data.generateViewItems is not a function at dxSelectBox (dx-designer-bindings.js:28:422) at e (knockout-latest.js:75:141) at knockout-latest.js:78:48 at knockout__WEBPACK_IMPORTED_MODULE_1___default.computed.disposeWhenNodeIsRemoved (component_registrator.js:53:53) at Function.yd (knockout-latest.js:55:359) at Function.zd (knockout-latest.js:55:45) at Function.ha (knockout-latest.js:54:384) at a.o.a.$ (knockout-latest.js:52:147) at inheritor.onInitializing (component_registrator.js:52:25) at inheritor._createOptions (component.js:106:40)
    Boris (DevExpress Support) 2 months ago

      Hi Axar,

      I'm sorry to hear you've also encountered this issue. We are already in the testing phase of a potential solution and will update this ticket as soon as we have results. Please track the updates in this ticket.

      Best regards,
      Boris

      Answers approved by DevExpress Support

      created 2 months ago

      We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

      Important Notes:

      • Hotfixes may be unavailable for Early Access/Beta builds or updates set for release within a week.
      • .NET only: in the NuGet Package Manager, use your personal NuGet feed and check the "Include prerelease" option to view the hotfix package in the "Updates" tab.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.