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

Popup Editor not firing

1 Answer 16 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jako
Top achievements
Rank 1
Jako asked on 18 Sep 2015, 11:13 AM

Hi everyone

 I have a kendo grid with a custom popup editor. 

 On this editor I have a async upload to add more files, but when adding files it never fires the update ActionResult. I have to manually change some values of the other model fields before it fires?

 I have even set a model value via jQuery when a file is uploaded, but it seems it ignores changes via jquery.

 Please advise.

 Thank you.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 22 Sep 2015, 10:49 AM

Hello Jako,

From what I understand you want the grid model to be updated once files have been uploaded. If that is the case, this should be done via code in the success handler of the file upload. You can update the model via JavaScript -- to notify the DataSource of the change, use the JS setter:

model.set("fileCount", uploadedFiles.length);

If this does not provide enough information to resolve the problem, please provide the relevant code for the functionality, so that we can provide a suggestion.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Editor
Asked by
Jako
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or