This is a migrated thread and some comments may be shown as answers.

Immediate remote Create event

1 Answer 46 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 21 Jan 2019, 03:06 PM

We have a number of grids with a remote datasource, and on the "Add Record" functionality, you see the new record get inserted into the grid, and get passed to the editing template, but no Create event is sent to via the remote transport until you actually accept on the editor.  However, when we set up a ListView with a remote datasource and a "New" button, similar to your demo, the transport's remote Create event seems to fired immediately with the editing template.  This is obviously a problem because the fields haven't been filled in, and also a remote record is being created before we know if we want that or not.

 

Does ListView behave differently than Grid with a remote datasource when adding a record?  I can't see where this would be desired behaviour, or if it is, how it would be turned off.  I can't seem to see how we might have messed up defining the datasource.  You have a demo with add/edit and one with remote datasource, but not both together, and we're going to try and merge them to give an running example of what we are seeing.

1 Answer, 1 is accepted

Sort by
0
Troy
Top achievements
Rank 1
answered on 21 Jan 2019, 03:18 PM

Actually, I just checked the demos myself, and your Editing example does use a remote datasource (and superficially works), so I'll get him to check against that and see where we may have gone awry.  I see an autosync field that maybe got left from a cut-and-paste, which might explain things.  Ignore this report unless I come back again... :)

Tags
ListView
Asked by
Troy
Top achievements
Rank 1
Answers by
Troy
Top achievements
Rank 1
Share this question
or