autosync, popup editor, "and new record"

3 posts, 0 answers
  1. Scott
    Scott avatar
    28 posts
    Member since:
    May 2015

    Posted 05 Nov 2015 Link to this post

     

    If I have a treelist or grid with "popup" editing and an autosync datasource, how can I have the popup editor appear immediately for the new record?

    It seems that with autosync, the create action is called immediately and no popup editor appears.

    Ideally I would like the popup before going to the create action (same as without autosync).

    It would be acceptable for the popup to appear after calling the create action on the server, so that it is editing a record filled with defaults.

  2. Scott
    Scott avatar
    28 posts
    Member since:
    May 2015

    Posted 05 Nov 2015 Link to this post

     Additional (probably related) problem with autosync + popup editor.

     If I bring up the popup editor, then edit any field and tab or click to another field, it does the autosync (calls the update action) but then it closes the edit window.

    How can I prevent this?

  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Rosen
    Admin
    Rosen avatar
    3235 posts

    Posted 09 Nov 2015 Link to this post

    Hello Scott,

     

    The popup editor is not designed to work with AutoSync functionality of the DataSource. AutoSync feature is more appropriate when using incell edit mode instead. You should avoid using it with the popup edit mode as every change to the model will cause rebinding of the Grid and closing the popup as you have already noticed.

     

    Regards,
    Rosen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top