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

autosync, popup editor, "and new record"

2 Answers 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 05 Nov 2015, 08:11 PM

 

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 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 05 Nov 2015, 08:24 PM

 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?

0
Rosen
Telerik team
answered on 09 Nov 2015, 01:00 PM

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
Tags
General Discussions
Asked by
Scott
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 1
Rosen
Telerik team
Share this question
or