Pass all of the selected items' paths to the server
|
Article relates to
|
RadFileExplorer
|
|
Created by
|
Fiko, Telerik
|
|
Last modified
|
August 16, 2009
|
|
Last modified by
|
Fiko
|
HOW TO
Pass all of the selected items' paths to the server by clicking a button.
THE APPROACH
- Add the needed contols on the page
- a Button that triggers the post back (ID="Button1")
- a HiddenField that holds the selected items paths (ID=HiddenField1")
- a Label - used for demonstration purposes to show the selected item's count. Its Text property is set on the server.
- Attach a handler (sendItemsPathsToServer) to the OnClientClick event of the Button1. This function accepts a parameter - the button object.
- The handler :
- The combinePathsInAString function accepts an array of type Telerik.Web.UI.FileExplorerItem - the selected items, and returns a string that contains all of the items paths:
- The __doPostBack() function in the sendItemsPathsToServer one triggers the Button1_Click event on the server :
C# :
VB.NET :
Comments
If you'd like to comment on this KB
article, please, send us a
Support Ticket.
Thank you!
Please
Sign In
to rate this article.