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

Disable RadUploadPanel depending on user rights

1 Answer 74 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Radu
Top achievements
Rank 1
Radu asked on 06 Jul 2011, 09:02 AM
Hallo,

I have a view in which there is a  RadUploadPanel containing a list of already uploaded files. THe RadUploadPanel's property RadUpload is binded to an already existing RadUpload control already existing in the view's XAML. THis scenario works good to upload files.

Now I have to implement the next scenario, in which the uploading is enabled based on a configuration.This means that I have to inhibit the RadUpload to appear when files are dropped on RadUploadPanel and the user doesn't have rights. I have tried to bind IsEnabled or AllowDrop to false to my boolean value from the model (which is tested to have the proper value depending on the user rights) without any chance.

Can you suggest a solution for this?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Fidanov
Telerik team
answered on 06 Jul 2011, 03:52 PM
Hello Radu,

The drop panel has a property "Suspend" that controls this behavior. The drop panel will set the AllowDrop property to true internally to ensure that drop events are always propagated to the control.

Kind regards,
Alex Fidanov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Upload
Asked by
Radu
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or