Disable RadUploadPanel depending on user rights

2 posts, 1 answers
  1. Radu
    Radu avatar
    2 posts
    Member since:
    Jun 2011

    Posted 06 Jul 2011 Link to this post


    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.
  2. Answer
    Alex Fidanov
    Alex Fidanov avatar
    636 posts

    Posted 06 Jul 2011 Link to this post

    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!

  3. DevCraft R3 2016 release webinar banner
Back to Top