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

Hiding Radupload buttons and assigning MaxFileInputsCount dynamically

2 Answers 82 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Vakul
Top achievements
Rank 1
Vakul asked on 09 Feb 2012, 10:01 PM
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 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 13 Feb 2012, 02:52 PM
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 >>
0
Vakul
Top achievements
Rank 1
answered on 13 Feb 2012, 03:08 PM
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.

Tags
Upload (Obsolete)
Asked by
Vakul
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Vakul
Top achievements
Rank 1
Share this question
or