jQuery UI Widgets Forums Angular Grid cell value is not changing

This topic contains 2 replies, has 2 voices, and was last updated by  Martin 2 days, 15 hours ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Grid cell value is not changing #104341

    TSKishore
    Participant

    Hi,

    I have a jqxgrid with 2 columns

    columns: any[] =
    [
    { text: ‘Description’, datafield: ‘name’, width: 250, editable: true, renderer: this.jqGridColumnsRenderer},
    { text: ‘Value’, datafield: ‘newvalue’, width: 250, editable: true, renderer: this.jqGridColumnsRenderer}
    ];

    orAttributes = [];

    source: any =
    {
    localdata: this.orAttributes,
    datafields: [
    { name: ‘name’, type: ‘string’},
    { name: ‘newvalue’, type: ‘string’}
    ],
    datatype: ‘json’
    };

    dataAdapter: any = new jqx.dataAdapter(this.source);

    if the cell (datafield: newvalue) is assigned with a number, I’am not able to change it to text, it gets reset to number 0.

    Grid cell value is not changing #104351

    TSKishore
    Participant

    In cellvaluechanged event – newvalue shows 0 and oldvalue shows 58.

    Grid cell value is not changing #104430

    Martin
    Participant

    Hello TSKishore,

    Yes, if you initially assign the cell with a numeric value, its type is set to ‘number’.
    What you can do is set the initial values always as string, for example: { name: 'name1', newvalue: '58' }.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.