Hi, I see the docs explaining the startEditingNew will insert a record immediately after the last pre-existing record. Is there any way to get the new editable record to show up at the top of the grid instead of the bottom?
Announcement
Collapse
No announcement yet.
X
-
Because this potentially creates a one-row offset in load on demand row indices, options for doing this include:
1) provide data as just an Array and insert a new Object at position 0 and start editing it
2) addData() with a new record that it set up to sort to position 0. Have your server code just acknowledge the addData() as succeeding (so the client think there's a real record there), and handle both the need to do a real save later and the off-by-one in requested indices in your server code.
Comment