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"))
)
Hide(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Drawer()
.Name("drawer")
.Events(events => events.Hide(@<text>
function(e) {
// Handle the Hide event inline.
}
</text>)
)
)
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"))
)
Show(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Drawer()
.Name("drawer")
.Events(events => events.Show(@<text>
function(e) {
// Handle the Show event inline.
}
</text>)
)
)
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"))
)
ItemClick(System.Func)
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.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Drawer()
.Name("drawer")
.Events(events => events.ItemClick(@<text>
function(e) {
// Handle the ItemClick event inline.
}
</text>)
)
)