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

Defines the fluent API for configuring the ScrollViewItem settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ScrollViewItemBuilder

Inheritance: objectScrollViewItemBuilder

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

Constructors

C#
public ScrollViewItemBuilder(ScrollViewItem settings)
Parameters:settingsScrollViewItem

Methods

Sets the HTML content which the content should display.

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

The action which renders the content.

Returns:

ScrollViewItemBuilder

Example:
C#
@( Html.Kendo().ScrollView()
.Name("View")
.Items(items => items.Add()
.Content(() =>
{
)
<strong> View Content </strong>
(
})
)
.Render();
)

Sets the HTML content which the content should display.

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

The content wrapped in a regular HTML tag or text tag (Razor syntax).

Returns:

ScrollViewItemBuilder

Example:
C#
@(Html.Kendo().ScrollView()
.Name("View")
.Items(items =&gt; items.Add()
.Content(
@&lt;text&gt;
Some text
&lt;strong&gt; View Content &lt;/strong&gt;
&lt;/text&gt;
)
)
)

Sets the HTML content which the view content should display as a string.

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

The action which renders the view content.

Returns:

ScrollViewItemBuilder

Example:
C#
@( Html.Kendo().ScrollView()
.Name("View")
.Items(items =&gt; items.Add()
.Content("&lt;strong&gt; View Content &lt;/strong&gt;"))
.Render();
)

Sets the HTML attributes.

C#
public virtual ScrollViewItemBuilder HtmlAttributes(IDictionary<string, object> attributes)
Parameters:attributesIDictionary<string, object>

The HTML attributes.

Returns:

ScrollViewItemBuilder

Sets the HTML attributes.

C#
public virtual ScrollViewItemBuilder HtmlAttributes(object attributes)
Parameters:attributesobject

The HTML attributes.

Returns:

ScrollViewItemBuilder