Skip to main content

BootstrapBinaryImage Class

Represents an editor capable of displaying images from a binary stream.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.2.dll

Declaration

[DXClientDocumentationProviderWeb("BootstrapBinaryImage")]
[ToolboxTabName("DX.24.2: Bootstrap Controls")]
public class BootstrapBinaryImage :
    ASPxBinaryImage,
    ISimpleRenderControl,
    IBootstrapEditorCssClassesOwner

Remarks

The BootstrapBinaryImage control can be used to display on the web page any valid image (supported by the requesting browser) taken from a binary stream.

This class inherits its basic functionality from its ancestor. The ASPxBinaryImage.ContentBytes property provides access to the editor’s contents represented by an array of bytes. The ASPxBinaryImage.StoreContentBytesInViewState property allows you to control whether the editor’s content should be stored within the editor’s view state between postbacks.

Note

The client-side equivalent of this editor control is represented by the BootstrapClientBinaryImage object. The editor’s client-side API is enabled if the ASPxEditBase.ClientInstanceName property is defined, any client event is handled, or the ASPxEditBase.EnableClientSideAPI property is set to true. Available client events can be accessed via the BootstrapBinaryImage.ClientSideEvents property.

Example

This example demonstrates how to enable the Binary Image‘s drag-and-drop feature.

The image below shows the result:

BootstrapBinaryImage_Example

<dx:BootstrapBinaryImage runat="server">
    <EditingSettings Enabled="true" AllowDropOnPreview="true" EmptyValueText="Drop image here" />
</dx:BootstrapBinaryImage>
See Also