A newer version of this page is available. Switch to the current version.

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.v18.2.dll

Declaration

public bool MobileMode { get; set; }
Public Property MobileMode As Boolean

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.

View code (ASPX):

<%  
    Html.DevExpress().WebDocumentViewer(settings => {
        settings.Name = "webDocumentViewer";

        // Uncomment the following line to enable the mobile mode.
        //settings.MobileMode = true;
    }).Bind(Model).GetHtml();
%>

View code (Razor):


@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