Custom Handler and order of events

2 posts, 0 answers
  1. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 09 Apr 2015 Link to this post

    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.


  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 10 Apr 2015 Link to this post

    Hi Suzan, 

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

    I hope this helps.

    Hristo Valyavicharski

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

Back to Top