ASPxClientGridKeyboardEventArgsBase.htmlEvent Property
In This Article
Gets a DHTML event object that relates to the processed event.
#Declaration
TypeScript
htmlEvent: any
#Property Value
Type | Description |
---|---|
any | An object that maintains information for a specific DHTML event. |
#Remarks
The htmlEvent
property allows you to access an object that stores the DHTML event state. For more information about available members of the DHTML event object, see the following topic: Event Object.
In the example below, ASPxGridView expands all group rows when a user presses the Enter
key.
function onKeyPress(s, e) {
if (e.htmlEvent.code == "Enter") {
s.ExpandAll()
}
}
<dx:ASPxGridView ID="grid" runat="server" ...>
<Settings ShowGroupPanel="true" />
<ClientSideEvents KeyPress="onKeyPress" />
<Columns>
<dx:GridViewDataColumn FieldName="ShipName" />
<!--...-->
</Columns>
</dx:ASPxGridView>
See Also