SchedulerSettings.EnableClientRender Property
Gets or sets a value that specifies whether or not to use client-side rendering of a Scheduler control’s appointments and view elements.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to use client rendering; otherwise, false. |
Remarks
Use the EnableClientRender property to specify whether or not to render Scheduler appointments and view elements on the client. When the client-side rendering is enabled, the client Scheduler receives the required data in JSON and updates its view accordingly for all end-user operations that do not require re-rendering of the Scheduler’s layout (e.g., navigation between dates or resources). The client-side rendering reduces the amount of markup that should be produced on the server, improving a web application’s overall performance.
The following end-user actions trigger client-side rendering of appointments and view elements.
- Switching displayed dates.
- Switching displayed resources in a grouped view.
Keep in mind that certain customization scenarios require appointments and view elements to be rendered on the server-side. When such customizations are performed, client-side rendering of corresponding elements is automatically turned off, which can affect your web application’s performance.
Using the following customization scenarios automatically disables client-side rendering of view elements.
- Subscribing to the ASPxScheduler.CustomizeElementStyle event.
- Subscribing to the ASPxScheduler.HtmlTimeCellPrepared event.
- Using templates to customize view elements.
- Using templates to customize toolbar elements.
Using templates to customize the presentation of appointments disables client-side rendering of both appointments and views.