Remove file - Client API

3 posts, 0 answers
  1. Omer B
    Omer B avatar
    7 posts
    Member since:
    Feb 2014

    Posted 02 Apr 2014 Link to this post

    Hi all
    I've a  page with asp.net TreeView Control, and a form that contain multiple controls(combobox, textbox, datepicker, etc).
    When i select a node from the Treeview, the page bis refreshed and the datasource that's connected to the form, assign the data from the database that is related to this selected node. (by using the Where parameter)
    I have an RadAysncFileUpload Control in the form, and it been populated with the data from the database after selecting a node.
    I want to know if it possible to remove the image so i can upload a different one, using Client API.
    I know that i need to check the checkbox(with the file name next to him) and than submit the form, but i need it without submiting the entire form.

    Thank you :)
  2. Omer B
    Omer B avatar
    7 posts
    Member since:
    Feb 2014

    Posted 03 Apr 2014 Link to this post

    HI all
    +1.
    Anyone
    ?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 04 Apr 2014 Link to this post

    Hi Omer,

    To remove all selected file from the AsyncUpload try to call deleteAllFileInputs() method of the asyncupload:

    $find('AsyncUpload1').deleteAllFileInputs()

    I hope this helps.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top