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

Defines the fluent API for configuring the PopoverAction settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PopoverActionBuilder

Inheritance: objectPopoverActionBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initialize the PopoverActionBuilder

C#
public PopoverActionBuilder(PopoverAction settings)
Parameters:settingsPopoverAction

The PopoverAction

Methods

Defines a handler function to be called when the action button is clicked.

C#
public PopoverActionBuilder Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

PopoverActionBuilder

Example:
C#
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Actions(action =&gt; action.Add().Text("Ok").Click(@&lt;text&gt;
function(e) { console.log("Action clicked"); }
&lt;/text&gt;))
)

Defines a handler function to be called when the action button is clicked.

C#
public PopoverActionBuilder Click(string handler)
Parameters:handlerstring

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

Returns:

PopoverActionBuilder

Example:
C#
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Actions(action =&gt; action.Add().Text("Ok").Click("onActionClick"))
)

Defines the name of the icon to display inside the action button.

C#
public PopoverActionBuilder Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

PopoverActionBuilder

Example:
C#
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Actions(action =&gt; action.Add().Text("Ok").Icon("user"))
)

Defines the CSS class that will be added to the icon element inside the action button.

C#
public PopoverActionBuilder IconClass(string value)
Parameters:valuestring

The value that configures the CSS class.

Returns:

PopoverActionBuilder

Example:
C#
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Actions(action =&gt; action.Add().Text("Ok").IconClass("refresh-icon"))
)

Defines the text displayed in the action button.

C#
public PopoverActionBuilder Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

PopoverActionBuilder

Example:
C#
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Actions(action =&gt; action.Add().Text("Add"))
)