jQWidgets Forums

jQuery UI Widgets Forums Grid addrow and selectcell

This topic contains 3 replies, has 3 voices, and was last updated by  Hristo 5 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • addrow and selectcell #92670

    arkgroup
    Participant

    I add new row to grid
    $("#jqxgrid").jqxGrid('addrow', null, {}, 'first');
    in addrow event I do this to select new cell

    commit(true);
     $('#jqxgrid').jqxGrid('selectcell', 0, "id");

    but nothing is selected in new row.
    How can I select first cell after adding empty row?

    Thanks

    addrow and selectcell #92699

    Hristo
    Participant

    Hello arkgroup,

    I tested it and it seems to work fine.
    Could you provide us an example that demonstrates this?

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    addrow and selectcell #105906

    EricK
    Participant

    Histo,
    Please provide an example that works. Use the rowID.
    Thank you,
    Eric

    addrow and selectcell #105942

    Hristo
    Participant

    Hello Eric,

    Could you clarify your issue?
    If you met some issue please, provide us more details and steps to reproduce it.

    If you want to select the new row then you should use the getrowboundindexbyid” method to find its index (in your case it is boundindex: 0).
    After that select it with selectrow” method.
    Please, take a look at this example.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.