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

Update button on Popup Editor not firing controller event

2 Answers 535 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 20 Mar 2018, 11:19 PM

I have a grid showing data and the Edit brings up a wrapper editor for that type in the shared folder.  Which is done automatically if the template name matches the class name.

The problem is that the update button does not fire the controller action

 

public async Task<ActionResult> Distributors_Update([DataSourceRequest]DataSourceRequest request,
[Bind(Prefix = "models")] IEnumerable<Distributor> distributors)

 

The Read action is working and again the custom type template is being used but no update action firing.

 

Any help would be appreciated.

2 Answers, 1 is accepted

Sort by
0
Reid
Top achievements
Rank 2
answered on 21 Mar 2018, 01:15 PM

Operator error here.  One has to actually change a value.  :)

So I was expecting the update to happen on a record that was not modified, only brought up in the editor.  it works fine.

Sorry for the confusion.

0
Stefan
Telerik team
answered on 23 Mar 2018, 08:16 AM
Hello, Reid,

The is expected result because the Grid will only send a request if any of the items are dirty(modified).

Also, for example, if the value is "Test" then it was changed to "TestOne" and returned back to "Test" the Grid will still make a request as it detected some initial changes to the value.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Reid
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or