aspnet-devexpress-dot-web-dot-aspxgridbehaviorsettings-e12c9313.md
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.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(true)]
public bool AllowClientEventsOnLoad { get; set; }
<DefaultValue(True)>
Public Property AllowClientEventsOnLoad As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true, to invoke the events; otherwise, false.
|
Find control-specific information (for ASPxGridView, ASPxCardView or ASPxVerticalGrid) in the sections below.
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
Online Demos:
Row Selection - Using Checkboxes
Row Selection - Using Row Clicks
Row Selection - Select All Rows
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
Online Demos:
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
See Also
ASPxGridBehaviorSettings Class