Skip to main content
Tab

ASPxGridViewBehaviorSettings.ProcessFocusedRowChangedOnServer Property

Gets or sets a value that specifies whether a change to the focused row should be completely processed on the server side.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(false)]
public bool ProcessFocusedRowChangedOnServer { get; set; }

Property Value

Type Default Description
Boolean false

true to completely process focused row changes on the server side; false to have the ability to handle it on the client side.

Property Paths

You can access this nested property as listed below:

Object Type Path to ProcessFocusedRowChangedOnServer
ASPxGridView
.SettingsBehavior .ProcessFocusedRowChangedOnServer
GridViewProperties
.SettingsBehavior .ProcessFocusedRowChangedOnServer

Remarks

If the ProcessFocusedRowChangedOnServer property is set to false (the default behavior), the ASPxClientGridView.FocusedRowChanged client event is always fired in response to moving row focus, and no postback to the server occurs. This allows you to completely handle a focused row change on the client side. If you need to finally process the event on the server side, you can set the event argument’s ASPxClientProcessingModeEventArgs.processOnServer property to true in an event handler. This initiates a round trip to the server and generates the corresponding ASPxGridView.FocusedRowChanged server-side event, which if handled, allows any desired server-side action to be performed. Note that a peculiarity of the ProcessFocusedRowChangedOnServer property set to false is that the ASPxGridView.FocusedRowChanged server event is initially fired on the server during the first grid control initialization (when the ASPxGridView.FocusedRowIndex property is set from -1 to a real value).

Setting the ProcessFocusedRowChangedOnServer property to true indicates that all processing of focused row changes should be performed on the server side, using the ASPxGridView.FocusedRowChanged server event, so a round trip to the server is always required. In this case, the ASPxClientGridView.FocusedRowChanged client event is not called on each change of the focused row. A peculiarity here is that the ASPxClientGridView.FocusedRowChanged client event is generated only one time - on the first initialization of the client grid object.

See Also