Back to Devexpress

ASPxGridView.ClientSideEvents Property

aspnet-devexpress-dot-web-dot-aspxgridview-7b2a6dac.md

latest2.4 KB
Original Source

ASPxGridView.ClientSideEvents Property

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

Declaration

csharp
public GridViewClientSideEvents ClientSideEvents { get; }
vb
Public ReadOnly Property ClientSideEvents As GridViewClientSideEvents

Property Value

TypeDescription
GridViewClientSideEvents

An object that allows you to handle ASPxGridView‘s client-side events.

|

Remarks

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.

Example

Note

For a full example, see the ASPxGridView - Focused Row demo.

aspx
<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>
js
function OnGridFocusedRowChanged() {
    DetailNotes.SetText("Loading...");
    grid.GetRowValues(grid.GetFocusedRowIndex(), 'EmployeeID;Notes', OnGetRowValues);
}

See Also

Client-Side Events

Grid View

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace