'file' input missing if disabled server side

2 posts, 0 answers
    ANDREW avatar
    11 posts
    Member since:
    Aug 2011

    Posted 27 Jun 2013 Link to this post


    I'm having an issue with the RadAsyncUpload control where if the control is disabled on the server side, then enabled on the client side, the 'Select' button doesn't work.

    I have narrowed this down to the <input type="file" class="ruFileInput" id="....file0" .....> element not being rendered when disabled on the server side.

    If I manually add what that element 'should' be (including it's name/id etc) then it starts working as expected.

    Serverside I am calling control.Enabled = false;

    Clientside I am calling jsControl.set_enabled(true);

    On the same topic, by disabling the control server side, the following other elements appear to get left out too (although they don't appear to affect my use of the control):

    * List item's ID (<li>) -> id="....row0"
    * 'file' input (described above)
    * label for='....file0'
    * 'ruDropZone' div

    Can you give any suggestions as how to be disable this control serverside while still being able to use it after re-enabling client side? I have considered handling all disabling/enabling client side which would probably work ok but it seemed a bug for it not to work the way I have described??


  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 02 Jul 2013 Link to this post

    Hi Andrew,

    Yes, this is a bug which I have logged. Until we resolve it you may use the following workaround:
    function enableRadAsyncUpload() {
        var upload = $find('RadAsyncUpload1');

    Hristo Valyavicharski
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top