jQuery UI Widgets Forums Grid Invoke addrow callback _after_ entering cell values

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

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

  • sickag
    Participant

    Hi there,

    I’m using a Grid with selectionmode = singlerow and editmode = selectedrow and a data adapter with a custom source that executes AJAX calls to a web service. When inserting a new row the addrow callback of my data adapter is invoked immediately, before having a chance to enter any data in the editors of all of the row’s cells. This causes problems because my web service is not able to create an empty row without at least some required field (cell) values. So long story short: Is there a way to make the Grid behave in such a manner, that I can first enter all the cell values of a new row and only when the row looses the focus the addrow callback is invoked?

    Any help would be appreciated… Thanks in advance.


    Dimitar
    Participant

    Hi sickag,

    Currently this cannot be achieved, but you can implement another way of pre-filling the new row, such as an “Add new row” pop-up, which, when confirmed, will add the new, populated, row to the grid and, through the addrow callback, to your database.

    Best Regards,
    Dimitar

    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.