Class
RadUpload

Represents the RadUpload for Silverlight control wrapper.

Definition

Namespace:Telerik.WebAii.Controls.Xaml

Assembly:Telerik.WebAii.Controls.Xaml.dll

Syntax:

cs-api-definition
public class RadUpload : ItemsControl, IAutomationPeer, IPeerConverter, IControl, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlItemsControlRadUpload

Implements: IAutomationPeerIControlIFrameworkElementIPeerConverterITargetElement

Inherited Members ItemsControl.DisplayMemberPathPropertyItemsControl.GetRealType()ItemsControl.DisplayMemberPathControl.IsTabStopPropertyControl.TabIndexPropertyControl.TabNavigationPropertyControl.PaddingPropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.BackgroundPropertyControl.BorderBrushPropertyControl.BorderThicknessPropertyControl.FontSizePropertyControl.ForegroundPropertyControl.IsEnabledPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.IsTabStopControl.TabIndexControl.TabNavigationControl.PaddingControl.HorizontalContentAlignmentControl.VerticalContentAlignmentControl.BackgroundControl.BorderBrushControl.BorderThicknessControl.FontSizeControl.ForegroundControl.IsEnabledControl.FontFamilyControl.FontStretchControl.FontStyleControl.FontWeightSilverlightTestElement.UseLayoutRoundingPropertySilverlightTestElement.UseLayoutRoundingFrameworkElement.ActualWidthPropertyFrameworkElement.ActualHeightPropertyFrameworkElement.WidthPropertyFrameworkElement.HeightPropertyFrameworkElement.MinWidthPropertyFrameworkElement.MaxWidthPropertyFrameworkElement.MinHeightPropertyFrameworkElement.MaxHeightPropertyFrameworkElement.HorizontalAlignmentPropertyFrameworkElement.VerticalAlignmentPropertyFrameworkElement.MarginPropertyFrameworkElement.DesiredSizePropertyFrameworkElement.RenderSizePropertyFrameworkElement.NamePropertyFrameworkElement.TagPropertyFrameworkElement.DataContextPropertyFrameworkElement.OpacityPropertyFrameworkElement.ClipPropertyFrameworkElement.RenderTransformPropertyFrameworkElement.OpacityMaskPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.IsHitTestVisiblePropertyFrameworkElement.VisibilityPropertyFrameworkElement.GetIdentifier(out string, out string)FrameworkElement.IsChild(FrameworkElement)FrameworkElement.GetChildTagIndex(FrameworkElement)FrameworkElement.InitializeMappings(MappingsCollection)FrameworkElement.As<T>()FrameworkElement.CastAs<T>()FrameworkElement.SetProxy(bool)FrameworkElement.SetUid(string)FrameworkElement.SetFindInfo(VisualFindInfo)FrameworkElement.SetXamlTag(string)FrameworkElement.KeyPress(Keys, int, int, int)FrameworkElement.GetRectangle()FrameworkElement.GetRectangle(FrameworkElement)FrameworkElement.GetIntRectangle()FrameworkElement.IsHitTest()FrameworkElement.IsHitTest(bool)FrameworkElement.IsHitTest(FrameworkElement, bool)FrameworkElement.Highlight()FrameworkElement.Highlight(bool)FrameworkElement.Parent()FrameworkElement.Parent<T>()FrameworkElement.Parent(string)FrameworkElement.Parent(string, bool)FrameworkElement.GetNextSibling()FrameworkElement.GetPrevSibling()FrameworkElement.NextSibling(string)FrameworkElement.NextSibling<T>()FrameworkElement.PreviousSibling(string)FrameworkElement.PreviousSibling<T>()FrameworkElement.AnySibling<T>()FrameworkElement.AnySibling(string)FrameworkElement.GetScreenRectangle()FrameworkElement.ScrollToVisible()FrameworkElement.ScrollToVisible(ScrollToVisibleType)FrameworkElement.EnsureClickable()FrameworkElement.ToXml()FrameworkElement.Refresh()FrameworkElement.Equals(object)FrameworkElement.GetHashCode()FrameworkElement.GetProperties()FrameworkElement.GetAttachedProperty<T>(string, string)FrameworkElement.SetAttachedProperty<T>(string, string, T)FrameworkElement.SetFocus()FrameworkElement.ValidateMouseLocationIfNeeded(Point)FrameworkElement.GetStringPresentation()FrameworkElement.ToRealObject()FrameworkElement.FromRealObject(object)FrameworkElement.ValidateType(Type, string)FrameworkElement.GetKnownControlTypes(TechnologyType)FrameworkElement.RegisterElement(Type, string)FrameworkElement.InitKnownWpfControlTypes()FrameworkElement.InitKnownSilverlightControlTypes()FrameworkElement.InitKnownXamlControlTypes(Type)FrameworkElement.GetControlTypeFromInterface(Type)FrameworkElement.Match(IFindExpression)FrameworkElement.SetDepth(int)FrameworkElement.AddChildNode(ITargetElement)FrameworkElement.SetClosingTag(ITargetElement)FrameworkElement.GetChildren()FrameworkElement.GetParent()FrameworkElement.GetHostParent()FrameworkElement.SetParent(ITargetElement)FrameworkElement.GetUniqueHashCode()FrameworkElement.ToString()FrameworkElement.Capture()FrameworkElement.CaptureImage()FrameworkElement.GetProperty<T>(string)FrameworkElement.GetPropertyTypeSafe(string)FrameworkElement.GetAutomationProperty(string)FrameworkElement.SetProperty(string, object)FrameworkElement.ActualWidthFrameworkElement.ActualHeightFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.MinWidthFrameworkElement.MaxWidthFrameworkElement.MinHeightFrameworkElement.MaxHeightFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.MarginFrameworkElement.DesiredSizeFrameworkElement.RenderSizeFrameworkElement.NameFrameworkElement.OpacityFrameworkElement.ClipFrameworkElement.RenderTransformFrameworkElement.OpacityMaskFrameworkElement.RenderTransformOriginFrameworkElement.IsHitTestVisibleFrameworkElement.VisibilityFrameworkElement.UidFrameworkElement.MappingsFrameworkElement.AutomationIdFrameworkElement.XamlTagBaseFrameworkElement.TextFrameworkElement.TextBlockContentFrameworkElement.TextLiteralContentFrameworkElement.UserFrameworkElement.XamlTagFrameworkElement.WaitFrameworkElement.FindFrameworkElement.ApplicationFrameworkElement.AbsoluteTagIndexFrameworkElement.TagNameIndexFrameworkElement.AbsoluteSiblingTagIndexFrameworkElement.EnableValidateMouseLocationFrameworkElement.ToolTipTextFrameworkElement.ComputedVisibilityFrameworkElement.IsVisibleFrameworkElement.ChildrenFrameworkElement.TechnologyTypeFrameworkElement.DepthFrameworkElement.IsTestRegionFrameworkElement.ParsedElementFrameworkElement.HostAutomationObject<FrameworkElement>.GetProperty(AutomationProperty)AutomationObject<FrameworkElement>.GetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.SetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.InvokeMethod(AutomationMethod, params object[])AutomationObject<FrameworkElement>.InvokeMethod(string, params object[])AutomationObject<FrameworkElement>.Serialize()AutomationObject<FrameworkElement>.Deserialize(string)AutomationObject<FrameworkElement>.ReferenceAutomationObject<FrameworkElement>.PropertyBag

Constructors

RadUpload()

Initializes a new instance of the RadUpload class.

Declaration

cs-api-definition
public RadUpload()

Properties

ErrorTooltipText

Gets the Upload error tooltip text.

Declaration

cs-api-definition
public string ErrorTooltipText { get; }

Property Value

string

The error tooltip text.

Items

Get the list of RadUploadItems currently displayed in the upload control.

Declaration

cs-api-definition
public IList<RadUploadItem> Items { get; }

Property Value

IList<RadUploadItem>

ProgressCaptionText

Get the progress caption text of the upload.

Declaration

cs-api-definition
public string ProgressCaptionText { get; }

Property Value

string

TotalPercentText

Get the progress area 'total percent' text.

Declaration

cs-api-definition
public string TotalPercentText { get; }

Property Value

string

TotalProgressBar

Get the progress area progress bar control.

Declaration

cs-api-definition
public RadProgressBar TotalProgressBar { get; }

Property Value

RadProgressBar

TotalSizeText

Get the progress area 'total size' text.

Declaration

cs-api-definition
public string TotalSizeText { get; }

Property Value

string

TotalText

Get the progress area 'total' text.

Declaration

cs-api-definition
public string TotalText { get; }

Property Value

string

UploadCompleted

Get whether the upload process has completed.

Declaration

cs-api-definition
public bool UploadCompleted { get; }

Property Value

bool

Uploading

Get whether the upload is in progress.

Declaration

cs-api-definition
public bool Uploading { get; }

Property Value

bool

Methods

AssignReference(AutomationReference)

Assign the reference and perform your custom class initialization.

Declaration

cs-api-definition
public override void AssignReference(AutomationReference reference)

Parameters

reference

AutomationReference

Overrides FrameworkElement.AssignReference(AutomationReference)

Browse()

Simulates the user clicking on the 'Browse' button opening the file browse dialog.

Declaration

cs-api-definition
public void Browse()

Browse(string)

Simulates the user clicking on the 'Browse' button to open the file browser dialog.

Declaration

cs-api-definition
public void Browse(string filePath)

Parameters

filePath

string

Cancel()

Simulates the user clicking on the 'Cancel' button to cancel the file upload process.

Declaration

cs-api-definition
public void Cancel()

HandleUploadDialog(string)

Handles the Silverlight Upload dialog given a file path to enter for selection.

Declaration

cs-api-definition
public static void HandleUploadDialog(string filePath)

Parameters

filePath

string

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

cs-api-definition
public void Pause()

Exceptions

InvalidOperationException

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

cs-api-definition
public void Resume()

Exceptions

InvalidOperationException

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

cs-api-definition
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

cs-api-definition
public void UploadFile(string filePath)

Parameters

filePath

string

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.

Declaration

cs-api-definition
public void UploadFile(string filePath, bool isAutomaticUpload)

Parameters

filePath

string

The path of the file to be uploaded.

isAutomaticUpload

bool

Whether the Upload control is configured to upload automatically the file on selection or not.

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

cs-api-definition
public void UploadFile(string filePath, bool isAutomaticUpload, int timeout)

Parameters

filePath

string

The path of the file to be uploaded.

isAutomaticUpload

bool

Whether the Upload control is configured to upload automatically the file on selection or not.

timeout

int

The upload timeout to wait until process ends.

WaitForUploadEnd()

Waits until the upload process ends.

Declaration

cs-api-definition
public void WaitForUploadEnd()

WaitForUploadEnd(int)

Waits until the upload process ends.

Declaration

cs-api-definition
public void WaitForUploadEnd(int timeout)

Parameters

timeout

int

The upload timeout to wait until process ends.