jQWidgets Forums

jQuery UI Widgets Forums Grid addrow commit+

This topic contains 4 replies, has 2 voices, and was last updated by  Hristo 8 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • addrow commit+ #92431

    arkgroup
    Participant

    I am adding new row to grid that have identity id, using Ever Present Row feature. In addrow event I receive new identity id from server, do updatebounddata and do commit (true,id). So far all ok.
    When I try to add another row, addrow event did not fire.
    What is wrong?

    Thanks

    addrow commit+ #92450

    Hristo
    Participant

    Hello arkgroup,

    I tested it and it seems to work fine.
    Could you give more details?

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    addrow commit+ #92452

    arkgroup
    Participant

    Hi Hristo,

    I found out that problem is with
    $(‘#jqxgrid’).jqxGrid(‘updatebounddata’);
    If I removed that I can add rows, but new problem is that new added rows does not have id’s and I cannot delete them.
    To summarize:
    if I have updateboundata – cannot add second row
    If I don’t have updateboundata cannot delete new added row.

    How do I update index for new row without updateboundata?
    I tried to call setcellvalue for index column, has same effect – cannot add second row…
    Thanks

    addrow commit+ #92457

    arkgroup
    Participant

    I think this line did not work for me
    commit(true, id);
    When I check grid
    var ctr = $('#jqxgrid').jqxGrid('getcellvalue', 0, 'ID');
    value still null…

    addrow commit+ #92485

    Hristo
    Participant

    Hello arkgroup,

    I tested mentioned notices about updatebounddata and it seems to work fine.
    About the second post, I would suggest you check the set ID is it a unique.
    If this doesn’t help please, provide us s sample of your code.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.