ClassRadUpload
Represents the RadUpload for Silverlight control wrapper.
Definition
Namespace:Telerik.WebAii.Controls.Xaml
Assembly:Telerik.WebAii.Controls.Xaml.dll
Syntax:
public class RadUpload : ItemsControl, IAutomationPeer, IPeerConverter, IControl, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlItemsControlRadUpload
Implements:
Inherited Members
Constructors
RadUpload()
Initializes a new instance of the RadUpload class.
Declaration
public RadUpload()
Properties
ErrorTooltipText
Gets the Upload error tooltip text.
Declaration
public string ErrorTooltipText { get; }
Property Value
The error tooltip text.
Items
Get the list of RadUploadItems currently displayed in the upload control.
Declaration
public IList<RadUploadItem> Items { get; }
Property Value
ProgressCaptionText
Get the progress caption text of the upload.
TotalPercentText
Get the progress area 'total percent' text.
TotalProgressBar
Get the progress area progress bar control.
Declaration
public RadProgressBar TotalProgressBar { get; }
Property Value
TotalSizeText
Get the progress area 'total size' text.
TotalText
Get the progress area 'total' text.
UploadCompleted
Get whether the upload process has completed.
Methods
AssignReference(AutomationReference)
Assign the reference and perform your custom class initialization.
Declaration
public override void AssignReference(AutomationReference reference)
Parameters
reference
Overrides
Browse()
Simulates the user clicking on the 'Browse' button opening the file browse dialog.
Declaration
public void Browse()
Browse(string)
Simulates the user clicking on the 'Browse' button to open the file browser dialog.
Cancel()
Simulates the user clicking on the 'Cancel' button to cancel the file upload process.
Declaration
public void Cancel()
HandleUploadDialog(string)
Handles the Silverlight Upload dialog given a file path to enter for selection.
Declaration
public static void HandleUploadDialog(string filePath)
Parameters
filePath
The path of the file to select and upload.
Pause()
Simulates the user clicking on the 'Pause' button to pause the file upload process.
Declaration
public void Pause()
Exceptions
Thrown when the upload has either not started or already completed.
Resume()
Simulates the user clicking on the 'Resume' button to resume file uploading.
Declaration
public void Resume()
Exceptions
Thrown when the upload has either not started or already completed.
Upload()
Simulates the user clicking on the 'Upload' button to trigger manual file upload. Can be called after a file is selected (the browse dialog is handled).
Declaration
public void Upload()
UploadFile(string)
Simulates user browsing, selecting file with the given path and uploading manually (click "Upload"). Handles the Silverlight Upload dialog internally.
Declaration
public void UploadFile(string filePath)
Parameters
filePath
The path of the file to be uploaded.
UploadFile(string, bool)
Simulates user browsing, selecting file with the given path and uploading manually (click "Upload") when isAutomaticUpload='false'. Hansles the Silverlight Upload dialog internally.
UploadFile(string, bool, int)
Simulates user browsing, selecting file with the given path and uploading manually (click "Upload") when isAutomaticUpload='false'. Hansles the Silverlight Upload dialog internally.
Declaration
public void UploadFile(string filePath, bool isAutomaticUpload, int timeout)
Parameters
filePath
The path of the file to be uploaded.
isAutomaticUpload
Whether the Upload control is configured to upload automatically the file on selection or not.
timeout
The upload timeout to wait until process ends.
WaitForUploadEnd()
Waits until the upload process ends.
Declaration
public void WaitForUploadEnd()
WaitForUploadEnd(int)
Waits until the upload process ends.
Declaration
public void WaitForUploadEnd(int timeout)
Parameters
timeout
The upload timeout to wait until process ends.