Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3555
Event question when using add new row feature
posted
We are having trouble determining which event to use when we do the
following...

A user types in a value in the add new row (fixated at the top), once they
click away the value gets added to the grid, however, we want to validate
the value before adding it to the grid and when we use BeforeRowInsert new
row event it gets fired when the user clicks in the add new row area before
they even type in a value. So my question is this, what event should I use
to validate the data before it gets added to the grid.
  • 469350
    Offline posted

    BeforeRowInsert fires when the AddNew row is first created. What you need is an event when the row is about to be comitted.I would use BeforeRowUpdate.This event will fire any time any row is about to be committed to the underlying data source of the grid. To check if the row is a new row or an existing row, you can check row.IsAddRow