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

Custom Handler and order of events

1 Answer 47 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 10 Apr 2015, 12:31 AM

I have a screen with several fields, the async upload control and a submit button.

I don't want the upload to take place until the submit button is clicked, as I cannot get the values of the fields on the screen until this time. These fields need to be stored on the same record as the image. The 'handler' is called when you 'select' the file and at this time I am storing a record in the database with the image.

I am able to store the image, get the key from the database, and then do an update to the data once 'submit' is pressed, but I would like to do just one insert command.

If the user decides to exit out of the screen, I have a record stored that is not complete with the rest of the screens information.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 10 Apr 2015, 02:57 PM
Hi Suzan, 

Please find the attached sample. It shows how to upload files into the Database.

I hope this helps.

Regards,
Hristo Valyavicharski
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
AsyncUpload
Asked by
Susan
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or