New to Telerik UI for ASP.NET MVC? Download free 30-day trial

NotificationEventBuilder

Methods

Hide(System.Func)

Defines the inline handler of the Hide client-side event

For more information see Hide event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


             @( Html.Kendo().Notification()
                       .Name("Notification")
                       .Events(events => events.Hide(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )

Hide(System.String)

Defines the name of the JavaScript function that will handle the the Hide client-side event.

For more information see Hide event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


             @( Html.Kendo().Notification()
                        .Name("Notification")
                        .Events(events => events.Hide("onHide"))
            )

Show(System.Func)

Defines the inline handler of the Show client-side event

For more information see Show event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


             @( Html.Kendo().Notification()
                       .Name("Notification")
                       .Events(events => events.Show(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )

Show(System.String)

Defines the name of the JavaScript function that will handle the the Show client-side event.

For more information see Show event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the event.

Example


             @( Html.Kendo().Notification()
                        .Name("Notification")
                        .Events(events => events.Show("onShow"))
            )

In this article
Not finding the help you need?