Skip to main content
Tab

ASPxGridBehaviorSettings.AllowClientEventsOnLoad Property

Gets or sets a value that specifies whether the FocusedElementChanged and SelectionChanged client-side events are invoked on the first load.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

[DefaultValue(true)]
public bool AllowClientEventsOnLoad { get; set; }

#Property Value

Type Default Description
Boolean true

true, to invoke the events; otherwise, false.

#Remarks

Find control-specific information (for ASPxGridView, ASPxCardView or ASPxVerticalGrid) in the sections below.

#ASPxGridView

If the ASPxGridViewBehaviorSettings.AllowFocusedRow property is set to true the first visible row is focused automatically. In this case, the client-side ASPxClientGridView.FocusedRowChanged event is raised on loading.

If a grid has selected rows, the ASPxClientGridView.SelectionChanged client-side event is raised on loading.

To not invoke the specified client-side events on the first load, set the AllowClientEventsOnLoad property to false

Focused Row

Selection

Grid View - Get Started

Online Demos:

Grid Rows - Focused Row

Row Selection - Using Checkboxes

Row Selection - Using Row Clicks

Row Selection - Select All Rows

#ASPxCardView

If the ASPxCardViewBehaviorSettings.AllowFocusedCard property is set to true the first visible card is focused automatically. In this case, the client-side ASPxClientCardView.FocusedCardChanged event is raised on loading.

If a grid has selected cards, the ASPxClientCardView.SelectionChanged client-side event is raised on loading.

To not invoke the specified client-side events on the first load, set the AllowClientEventsOnLoad property to false

Focused Card

Selection

Card View - Get Started

Online Demos:

Focusing

Selection

#ASPxVerticalGrid

If a grid has selected cards, the ASPxClientVerticalGrid.SelectionChanged client-side event is raised on loading.

To not invoke the specified event on the first load, set the AllowClientEventsOnLoad property to false

Vertical Grid - Get Started

See Also