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

Only allow single selection

5 Answers 34 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
David Cowan
Top achievements
Rank 1
David Cowan asked on 23 Jun 2014, 08:31 PM
Is there any way to limit file selection to only one?  I tried setting

fileExplorer.TreeView.MultipleSelect = false;

But it didn't work.

5 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 25 Jun 2014, 01:50 PM
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.

 
0
David Cowan
Top achievements
Rank 1
answered on 25 Jun 2014, 01:57 PM
I have set that and multiple selection is still allowed.  I am in ExplorerMode="FileTree"  not sure if that makes a difference
0
Vessy
Telerik team
answered on 26 Jun 2014, 02:24 PM
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.

 
0
David Cowan
Top achievements
Rank 1
answered on 27 Jun 2014, 04:13 PM
I have tried this but get an exception because the TreeView property is null
0
Vessy
Telerik team
answered on 02 Jul 2014, 11:50 AM
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.

 
Tags
FileExplorer
Asked by
David Cowan
Top achievements
Rank 1
Answers by
Vessy
Telerik team
David Cowan
Top achievements
Rank 1
Share this question
or