Only allow single selection

6 posts, 0 answers
  1. David Cowan
    David Cowan avatar
    22 posts
    Member since:
    Nov 2009

    Posted 23 Jun 2014 Link to this post

    Is there any way to limit file selection to only one?  I tried setting

    fileExplorer.TreeView.MultipleSelect = false;

    But it didn't work.
  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 25 Jun 2014 Link to this post

    Hi David,

    You can disable the multiple file selection by configuring the FileExplorer's Configuration's AllowMultipleSelection property:
    protected void Page_Load(object sender, EventArgs e)
    {
        fileExplorer.Configuration.AllowMultipleSelection = false;
    }

    Hope this helps.

    Regards,
    Vessy
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David Cowan
    David Cowan avatar
    22 posts
    Member since:
    Nov 2009

    Posted 25 Jun 2014 in reply to Vessy Link to this post

    I have set that and multiple selection is still allowed.  I am in ExplorerMode="FileTree"  not sure if that makes a difference
  5. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 26 Jun 2014 Link to this post

    Hi David,

    I have just answered you support ticket on the subject, for convenience I am pasting my answer here as well:

    I managed to reproduce the issue and I can confirm that it is a bug the FileExplorer control. I have logged it into our feedback system and you can track its progress here: feedback item.

    For the time being you can disable the TreeView selection with the following configuration in the Page_PreRenderComplete event:

    protected void Page_PreRenderComplete(object sender, EventArgs e)
    {
        RadFileExplorer1.TreeView.MultipleSelect = false;
    }

    A sign of gratitude for your report I have updated your Telerik points accordingly.


    Regards,
    Vessy
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. David Cowan
    David Cowan avatar
    22 posts
    Member since:
    Nov 2009

    Posted 27 Jun 2014 in reply to Vessy Link to this post

    I have tried this but get an exception because the TreeView property is null
  7. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 02 Jul 2014 Link to this post

    Hello David,

    Is there a chance that FileExplorer on your page is placed inside a template container, so the control cannot be achieved directly through its ID? If this is not the case, can you please isolate the issue and send us the exact configuration causing it so we can debug it on our side?

    The following article will explain in more details the project isolation steps you should follow: Isolating a problem in a sample project

    Looking forward to hearing from you,
    Vessy
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017