Hiding Radupload buttons and assigning MaxFileInputsCount dynamically

Thread is closed for posting
3 posts, 0 answers
  1. Vakul
    Vakul avatar
    2 posts
    Member since:
    Aug 2012

    Posted 09 Feb 2012 Link to this post

    Hi Guys,

    I have a radupload control in my page. I would like to remove all the to hide add/delete buttons that appears within the control (and the remove button as well). 
    I tried ControlObjectsVisibility value to "None" but my requirement is to allow 5 radupload and dynamically change the available "select" buttons (MaxFilesInputsCounts= 5- uploadedcount) from code-behind.

    Any thoughts ?


  2. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 13 Feb 2012 Link to this post

    Hi Vakul,

    Please excuse me, but I don't seem to understand your requirements. Could you please elaborate a bit on what exactly you're trying to achieve? What exactly do you want to be shown on the page, and what do you mean by "available Select button"? And also when exactly do you want to change them?

    Regards,
    Bozhidar
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vakul
    Vakul avatar
    2 posts
    Member since:
    Aug 2012

    Posted 13 Feb 2012 Link to this post

    Hi Bozhidar ,

    As explained in my requirements, I wanted to upload only 5 attachments and show only 5 Select(Browse files for upload)  for a radupload and based on the upload count(whenever user uploads a file), I wanted to adjust the MaxFilesInputCount and remove all the other buttons (add/delete buttons and remove button).

    I achieved this by hiding .ruadd,.rudelete, .ruRemove in css file and using InitialFileInputsCount instead of MaxFileInputsCount.

    Regards,
    Vakul More.

Back to Top