Hiding the textbox

3 posts, 1 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 04 Nov 2010 Link to this post

    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. Answer
    Yana
    Admin
    Yana avatar
    4984 posts

    Posted 05 Nov 2010 Link to this post

    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
  3. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 05 Nov 2010 Link to this post

    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
Back to Top