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

Hiding the textbox

2 Answers 76 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 04 Nov 2010, 07:27 PM
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 ...
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

2 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 05 Nov 2010, 01:27 PM
Hi Stuart,

You can also hide it with css as in this example.

Greetings,
Yana
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
0
Stuart Hemming
Top achievements
Rank 2
answered on 05 Nov 2010, 01:31 PM
Do you know, I must have looked at that demo half a dozen times and never noticed that there was no textbox!

Mind you, that's me all over; Mr Reinvent-the-wheel!

-- 
Stuart
Tags
AsyncUpload
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Yana
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or