How does and MVC grid and datasource determine which CRUD methods to use

2 posts, 0 answers
  1. Casey
    Casey avatar
    9 posts
    Member since:
    Feb 2018

    Posted 16 May 2018 Link to this post

    How does an MVC grid, or it's datasource determine which controller methods to use when Creating, reading, updating and destroying data utilizing the datasource.sync() method?  I have a grid that that when sync is called, it is trying to use the update method on a new record which causes an error.  I can't figure out how to identify the new record to the grid and datasource so that it will use the create method instead.  Has anyone else experienced this issue?
  2. Casey
    Casey avatar
    9 posts
    Member since:
    Feb 2018

    Posted 16 May 2018 Link to this post

    Nevermind.  I found the isNew() and hasChanges() methods.
Back to Top