Using the AsyncUpload control renders the input textbox largely irrelevant so I thought I'd have a go at hiding it.
Typically, I wasn't doing things in a straightforward page. I have a user control that contains a RadWindow which itself contains a <CententTemplate> element. The AsyncUpload control is in that.
I thought that I would be able to hide the control using the OnClientShow event of the RadWindow and so, I wrote this ...
Imagine my surprise when it worked first time!
Then I actually used the upload control to, well, upload something. When the files had finished uploading the input came back.
The solution was to wire up the AsyncUpload's client event OnClientFileUploaded in which I execute the same line as in the OnClientShow event.
Job done.
Just thought I'd share.
--
Stuart
Typically, I wasn't doing things in a straightforward page. I have a user control that contains a RadWindow which itself contains a <CententTemplate> element. The AsyncUpload control is in that.
I thought that I would be able to hide the control using the OnClientShow event of the RadWindow and so, I wrote this ...
function
OnClientShow(sender, e) {
$telerik.$(
".ruFakeInput"
).hide();
}
Imagine my surprise when it worked first time!
Then I actually used the upload control to, well, upload something. When the files had finished uploading the input came back.
The solution was to wire up the AsyncUpload's client event OnClientFileUploaded in which I execute the same line as in the OnClientShow event.
Job done.
Just thought I'd share.
--
Stuart