jQWidgets Forums

jQuery UI Widgets Forums TreeGrid addRow return

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • addRow return #69906

    dpibt
    Participant

    Hello, as the API says, the addRow doesn’t return enything.
    Althoug I’ve seen it always return a false bool value.
    I was just thinkin that it could be interesting to have a return value informingg if the row was added correctly, and in the case where the add is made withou an ID (automatically calculated), return the new row ID.
    Is there any way to do it?

    addRow return #69910

    Peter Stoev
    Keymaster

    Hi dpibt,

    addRow defined in the source object has commit callback where you can pass the new ID if there is new ID. The “addRow” method can be invoked for adding rows, but it does not return a value.

    Best Regards,
    Peter Stoev

    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.