DrawerEventBuilder
Methods
Hide(System.String)
Defines the handler of the Hide client-side event. Fires when the 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 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 user clicks on a Drawer's item.
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"))
)