aspnet-devexpress-dot-web-dot-aspxgridview-7b2a6dac.md
Gets an object that lists the client-side events specific to the GridView.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public GridViewClientSideEvents ClientSideEvents { get; }
Public ReadOnly Property ClientSideEvents As GridViewClientSideEvents
| Type | Description |
|---|---|
| GridViewClientSideEvents |
An object that allows you to handle ASPxGridView‘s client-side events.
|
The ClientSideEvents property provides access to the properties whose names correspond to the events available to a ASPxGridView on the client side. These properties provide the capability to assign JavaScript handlers to the required client-side events of the ASPxGridView.
Note
For a full example, see the ASPxGridView - Focused Row demo.
<dx:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" DataSourceID="EmployeesDataSource"
KeyFieldName="EmployeeID" PreviewFieldName="Notes" AutoGenerateColumns="False" EnableRowsCache="false" Width="100%">
<Columns>
...
</Columns>
...
<ClientSideEvents FocusedRowChanged="function(s, e) { OnGridFocusedRowChanged(); }" />
</dx:ASPxGridView>
function OnGridFocusedRowChanged() {
DetailNotes.SetText("Loading...");
grid.GetRowValues(grid.GetFocusedRowIndex(), 'EmployeeID;Notes', OnGetRowValues);
}
See Also