jQWidgets Forums

jQuery UI Widgets Forums Grid change cell value

This topic contains 2 replies, has 2 voices, and was last updated by  shardik 11 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • change cell value #28170

    shardik
    Participant

    Hallo!!
    I’ve this situation:

    in a column I’ve set the value with this function:

    var nrRenderer = function(row, columnfield, value, defaulthtml, columnproperties) {
    if (values == “A”) {
    return ‘‘ + values + ‘‘;
    } else {
    return ‘‘ + values + ‘‘;
    }
    };

    I need change the value on grid with javascript

    I try with this but don’t work
    $(“#mygrid”).jqxGrid(‘setcellvalue’, event.args.rowindex, “myColumn”, “new value”);

    The tooltip work correctly, but on display I read undefined

    Tank for help me

    change cell value #28172

    Peter Stoev
    Keymaster

    Hi shardik,

    “setcellvalue” works. It expects valid row bound index, valid column data field and a cell value.

    Best Regards,
    Peter Stoev

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

    change cell value #28241

    shardik
    Participant

    tank Pater,
    But with setcellvalue I change the value but not the display (it was alwais undefined)

    On function render I set a tag html element, in this topic can’t view the source 🙁

    The tag is a tag span with some attribute

    I add on this tag the id attribute and when I need to change the color I use jquery to get the element

    S

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

You must be logged in to reply to this topic.