jQWidgets Forums

jQuery UI Widgets Forums Grid editable cell clear issue

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • editable cell clear issue #73097

    jahnvi25
    Participant

    i get from server..for example
    serverData which has field qty..
    before setting it to table.. i am doing

    serverdata.qty = <some value> for some matching unique ids..
    after that i do
    src.localdata = serverdata
    //update found data to reflect changes

    everything works fine.. my qty field in table is editable.. so user can enter/delete qty/
    now i have “clear” button on screen.. which should clear the qty. thats where the problem is.
    here is what i am doing to clear qty
    $(‘#table’).jqxGrid(‘beginupdate’);
    var rows = $(‘#table’).jqxGrid(‘getrows’);
    for(var i=0;i<rows.length;i++){
    rows[i].qty = null;
    }
    $(‘#table’).jqxGrid(‘endupdate’);
    $(‘#table’).jqxGrid(‘updatebounddata’,’data’);

    this does not clear the qty in editable cell.. but if i enter qty manually.. then it does clear that value..
    if qty is added via above approach (via serverdata).. then it does not clear that cell..

    how can i fix this ?

    thanks

    editable cell clear issue #73121

    ivailo
    Participant

    Hi jahnvi25,

    Try to use ‘setcellvalue’.

    Here is an example.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.