jQuery UI Widgets Forums Angular setCellValue error

This topic contains 1 reply, has 2 voices, and was last updated by  Todor 5 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • setCellValue error #105562

    shreekumar551984
    Participant

    I’m using jqxpivotgrid and trying to set the value of the cell [(onPivotcellclick)].
    Here’s my code
    pivotgrid.component.html

    <jqxPivotGrid #pivotGrid
        [width]="800" 
        [height]="600"
        [source]="pivotDataSource"
        [treeStyleRows] = "false"
        [autoResize] = "true"
        [multipleSelectionEnabled] = "true"
         (OnPivotcellclick) ="onPivotcellclick ($event)">
    </jqxPivotGrid>

    pivotgrid.component.ts

    @ViewChild('pivotGrid', {static:true}) myPivotGrid: jqxPivotGridComponent;
    onPivotcellclick(event): void
    {
       var cells = this.myPivotGrid.getPivotCells();
       cells.setCellValue(event.args.pivotRow, event.args.pivotColumn,"55");
    }

    Here, when I click on cell, I’m getting following error:

    PivotgridComponent.html:2 ERROR ReferenceError: dsType is not defined
        at c.<computed>.setCellValue (jqxpivotgrid.js:8)
        at PivotgridComponent.onPivotcellclick (pivotgrid.component.ts:103)
        at Object.eval [as handleEvent] (PivotgridComponent.html:9)
        at handleEvent (core.js:34777)
        at callWithDebugContext (core.js:36395)
        at Object.debugHandleEvent [as handleEvent] (core.js:36031)
        at dispatchEvent (core.js:22519)
        at core.js:24416
        at SafeSubscriber.schedulerFn [as _next] (core.js:27877)
        at SafeSubscriber.__tryOrUnsub (Subscriber.js:185)
    setCellValue error #105600

    Todor
    Participant

    Hello shreekumar551984,

    Thank you for the feedback. We will create a work item about this behavior.

    Best Regards,
    Todor

    jQWidgets Team
    https://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.