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

Defines the fluent interface for configuring the Notification events.

Definition

Constructors

C#
public NotificationEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

Methods

Defines the inline handler of the Hide client-side event

C#
public virtual NotificationEventBuilder Hide(Func<object, object> handler)
Parameters:handlerFunc<object, object>

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

Returns:

NotificationEventBuilder

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events =&gt; events.Hide(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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

C#
public virtual NotificationEventBuilder Hide(string handler)
Parameters:handlerstring

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

Returns:

NotificationEventBuilder

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events =&gt; events.Hide("onHide"))
)

Defines the inline handler of the Show client-side event

C#
public virtual NotificationEventBuilder Show(Func<object, object> handler)
Parameters:handlerFunc<object, object>

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

Returns:

NotificationEventBuilder

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events =&gt; events.Show(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
.Render();
)

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

C#
public virtual NotificationEventBuilder Show(string handler)
Parameters:handlerstring

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

Returns:

NotificationEventBuilder

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events =&gt; events.Show("onShow"))
)