DrawerEventBuilder
Methods
Hide(System.String)
Defines the handler of the Hide client-side event. Fired when the Kendo UI Drawer is about to be hidden. The event can be prevented by calling the preventDefault method of the event parameter.
For more information see Hide event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Hide event.
Example
@(Html.Kendo().Drawer()
.Name("drawer")
.Events(events => events.Hide("onHide"))
)
Show(System.String)
Defines the handler of the Show client-side event. Fires before the Kendo UI Drawer is revealed. The event can be prevented by calling the preventDefault method of the event parameter.
For more information see Show event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Show event.
Example
@(Html.Kendo().Drawer()
.Name("drawer")
.Events(events => events.Show("onShow"))
)
ItemClick(System.String)
Defines the handler of the ItemClick client-side event. Fires when the user clicks an item in the Kendo UI Drawer. The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see ItemClick event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the ItemClick event.
Example
@(Html.Kendo().Drawer()
.Name("drawer")
.Events(events => events.ItemClick("onItemClick"))
)
KendoKeydown(System.String)
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Drawer is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
For more information see KendoKeydown event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the KendoKeydown event.