Skip to main content

WebDocumentViewerSettings.MobileMode Property

Specifies whether or not the Web Document Viewer should be configured for use on mobile devices.

Namespace: DevExpress.Web.Mvc

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

Declaration

public bool MobileMode { get; set; }

Property Value

Type Description
Boolean

true, to enable the mobile mode; otherwise, false.

Remarks

The following code demonstrates how to add a Web Document Viewer to a View.

@model DevExpress.XtraReports.UI.XtraReport
@Html.DevExpress().WebDocumentViewer(settings => {
    settings.Name = "webDocumentViewer";
    // Uncomment the following line to enable the mobile mode.
    //settings.MobileMode = true;
}).Bind(Model).GetHtml()

The following image illustrates the Document Viewer in the mobile mode.

mobile-viewer-phone-demo-small

See Also