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

Defines the fluent API for configuring the Kendo ResponsivePanel for ASP.NET MVC.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ResponsivePanelBuilder : WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>, IHtmlString

Inheritance: objectWidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>ResponsivePanelBuilder

Implements: IHtmlString

Inherited Members WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ToComponent()WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.Name(string)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.Deferred(bool)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ModelMetadata(ModelMetadata)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.HtmlAttributes(object)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.AsModule(bool)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.Render()WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ToHtmlString()WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ToClientTemplate()WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ToString()WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.Componentobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ResponsivePanel class.

C#
public ResponsivePanelBuilder(ResponsivePanel component)
Parameters:componentResponsivePanel

The component.

Methods

If set to false the widget will not close when the page content is touched, after it was opened on a mobile device. You will need to call the close method when the panel needs to close.

C#
public ResponsivePanelBuilder AutoClose(bool value)
Parameters:valuebool

The value that configures the autoclose.

Returns:

ResponsivePanelBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.AutoClose(false)
.Content("&lt;strong&gt; First Item Content&lt;/strong&gt;")
)

Specifies the page width at which the widget will be hidden and its toggle button will become visible.

C#
public ResponsivePanelBuilder Breakpoint(double value)
Parameters:valuedouble

The value that configures the breakpoint.

Returns:

ResponsivePanelBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Breakpoint(1000)
.Content("&lt;strong&gt; First Item Content&lt;/strong&gt;")
)

Sets the HTML content which the panel will hide.

C#
public ResponsivePanelBuilder Content(Action value)
Parameters:valueAction

The action which renders the content.

Returns:

ResponsivePanelBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Content(() =&gt;
{
)
&lt;strong&gt;Panel content&lt;/strong&gt;
(
})
)

Sets the HTML content which the panel will hide

C#
public ResponsivePanelBuilder Content(Func<object, object> value)
Parameters:valueFunc<object, object>

The Razor inline template

Returns:

ResponsivePanelBuilder

Example:
C#
@(Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Content(@&lt;strong&gt; Hello World!&lt;/strong&gt;))

Sets the HTML content which the panel will hide as a string.

C#
public ResponsivePanelBuilder Content(string value)
Parameters:valuestring

The action which renders the content.

Returns:

ResponsivePanelBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Content("&lt;strong&gt; First Item Content&lt;/strong&gt;")
)

Configures the client-side events.

C#
public ResponsivePanelBuilder Events(Action<ResponsivePanelEventBuilder> configurator)
Parameters:configuratorAction<ResponsivePanelEventBuilder>

The client events action.

Returns:

ResponsivePanelBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("ResponsivePanel")
.Events(events =&gt; events
.Close("onClose")
)
)

Specifies the nonce attribute that will be set to the inline style injected in the <head> tag containing the dynamic media query styles.

C#
public ResponsivePanelBuilder Nonce(string value)
Parameters:valuestring

The value that configures the nonce.

Returns:

ResponsivePanelBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Nonce("nonce")
.Content("&lt;strong&gt; First Item Content&lt;/strong&gt;")
)

Specifies the direction from which the hidden element will open up, once the toggle button has been activated

C#
public ResponsivePanelBuilder Orientation(ResponsivePanelOrientation value)
Parameters:valueResponsivePanelOrientation

The value that configures the orientation.

Returns:

ResponsivePanelBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Orientation(ResponsivePanelOrientation.Right)
.Content("&lt;strong&gt; First Item Content&lt;/strong&gt;")
)
C#
public ResponsivePanelBuilder Orientation(string value)
Parameters:valuestringReturns:

ResponsivePanelBuilder

Specifies the selector for the toggle button that will show and hide the responsive panel.

C#
public ResponsivePanelBuilder ToggleButton(string value)
Parameters:valuestring

The value that configures the togglebutton.

Returns:

ResponsivePanelBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.ToggleButton("Toggle")
.Content("&lt;strong&gt; First Item Content&lt;/strong&gt;")
)