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
530
Adding new row in hierarchical grid
posted

Hi,

Is it possible to have a button (like a template field) in an empty row and use the button to add the row to the grid?

I have my empty/new row show up at the bottom of the grid and I want to have a button in the last column, which when clicked should raise the rowadding event.

Thanks,

Marshal

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    Hi Marshal,

    Unfortunately, there is no way by default to have a button in the add row to use for commiting.  You would have to do that through some custom JavaScript by adding it to a cell that was part of a template column.  It would be possible to use either that button or another button to commit the adding.  You can call commit off of the editing core behavior.  You would just need to cancel the row adding client event until your button is clicked so that it is not commited upon enter key or tabbing off the grid.

    regards,
    David Young

Children
No Data