Skip to main content
Tab

FileManagerSettingsUpload.NullText Property

Gets or sets the prompt text displayed within the upload panel‘s text box when no file is selected.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("")]
public string NullText { get; set; }

Property Value

Type Default Description
String String.Empty

A string value that specifies the prompt text.

Property Paths

You can access this nested property as listed below:

Object Type Path to NullText
ASPxFileManager
.SettingsUpload .NullText

Remarks

The NullText property defines the prompt text to be displayed in the upload panel’s text box if no file is selected.

UploadControl_NullText

Example

Web Forms (in markup):

<dx:ASPxFileManager ID="fileManager" runat="server" >
    <SettingsUpload ShowUploadPanel="true" NullText="Select a file..." />
    ...
</dx:ASPxFileManager>

Web Forms (in code):

ASPxFileManager fm = new ASPxFileManager();
...
fm.SettingsUpload.ShowUploadPanel = true;
fm.SettingsUpload.NullText = "Select a file...";

MVC:

@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";
    settings.SettingsUpload.ShowUploadPanel = true;
    settings.SettingsUpload.NullText = "Select a file...";
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also