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

Multiple Selected Files - how to get it?

2 Answers 114 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
TBI
Top achievements
Rank 1
TBI asked on 13 Jul 2009, 04:15 PM
I'm having an issue with figuring with RadFileExplorer and need some help!

How can I get the list of selected files in the FileExplorer? (multiple selected files, not just one)

I've tried using RadFileExplorer1.Grid.SelectedItems property to get a list of selected items but it always seems to return null (count 0). Am I missing something obvious here?

2 Answers, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 15 Jul 2009, 02:40 PM
Hello TBI,

The RadFileExplorer control does not have server property or method that returns the selected items but you could easily implement such functionality by using a hidden field. For your convenience I have attached a demo to this thread.
I hope this helps.

Sincerely yours,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
TBI
Top achievements
Rank 1
answered on 17 Jul 2009, 08:12 PM
Thanks! that works. With a few minor changes to that example, I got it to exactly what I wanted.

I believe there was one mistake in the attached code.  On the ASPX page, I had to change the following property for the button to get it to work:

OnClientClick="sendSelectedItemsToServer(this);"
Tags
FileExplorer
Asked by
TBI
Top achievements
Rank 1
Answers by
Fiko
Telerik team
TBI
Top achievements
Rank 1
Share this question
or