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

Clear RadUpload

1 Answer 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
SMA SOFTWARE
Top achievements
Rank 1
SMA SOFTWARE asked on 08 Jun 2010, 03:37 PM
Hi,

After I choose a file from RadUpload, I wonder how do I clear the file selection, and leave the component in the initial state. That is, without any files selected.

Grateful,

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 10 Jun 2010, 11:29 AM
Hello SMA SOFTWARE,

I am not sure what you scenario is, can you please clarify? If you want to reset the value of RadUpload for some reason you can do it the following way:

var inputs = $find("RadUpload1").getFileInputs();
for(var i = 0; i < inputs.length; i++) {
    inputs[i].innerHTML = inputs[i].innerHTML;
}


Sincerely yours,
Genady Sergeev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
SMA SOFTWARE
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or