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

Defines the fluent API for configuring the Kendo UI ResponsivePanel

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

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

Inheritance: objectHelperResultWidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>ResponsivePanelBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ToComponent()WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.Expression(string)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.Name(string)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.Deferred(bool)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.HtmlAttributes(object)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.Render()WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ToHtmlString()WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ToClientTemplate()WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.AsModule(bool)WidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ComponentWidgetBuilderBase<ResponsivePanel, ResponsivePanelBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.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 ResponsivePanelBuilder class.

C#
public ResponsivePanelBuilder(ResponsivePanel component)
Parameters:componentResponsivePanel

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 for AutoClose

Returns:

ResponsivePanelBuilder

Returns the current ResponsivePanelBuilder instance.

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 for Breakpoint

Returns:

ResponsivePanelBuilder

Returns the current ResponsivePanelBuilder instance.

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

The content of the responsive panel

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

The value for Content

Returns:

ResponsivePanelBuilder

Returns the current ResponsivePanelBuilder instance.

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

Returns the current ResponsivePanelBuilder instance.

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 for Nonce

Returns:

ResponsivePanelBuilder

Returns the current ResponsivePanelBuilder instance.

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 for Orientation

Returns:

ResponsivePanelBuilder

Returns the current ResponsivePanelBuilder instance.

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

Sets the orientation of the ResponsivePanel.

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

The orientation

Returns:

ResponsivePanelBuilder

Returns the current ResponsivePanelBuilder instance.

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 for ToggleButton

Returns:

ResponsivePanelBuilder

Returns the current ResponsivePanelBuilder instance.

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