TreeListColumnGroupBuilder

Properties

Column - TreeListColumnGroup

Gets the columns in the group

Methods

Title(System.String)

Sets the title displayed in the header of the column.

Parameters

text - System.String

The text.

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
             @(Kendo().TreeList<OrderViewModel>()
                .Name("TreeList")
                .Columns(columns => columns.Bound(o => o.OrderID).Title("ID"))
             )
             

HeaderHtmlAttributes(System.Object)

Sets the HTML attributes applied to the header cell of the column.

Parameters

attributes - System.Object

The attributes.

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
             @(Kendo().TreeList<OrderViewModel>()
                .Name("TreeList")
                .Columns(columns => columns.Bound(o => o.OrderID)
                    .HeaderHtmlAttributes(new {@class="order-header"})
                )
             )
             

HeaderHtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes applied to the header cell of the column.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The attributes.

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
             @(Kendo().TreeList<OrderViewModel>()
                .Name("TreeList")
                .Columns(columns => columns.Bound(o => o.OrderID)
                    .HeaderHtmlAttributes(new {@class="order-header"})
                )
             )
             

Locked()

Makes the column static. By default all columns are not locked.

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
             @(Kendo().TreeList<OrderViewModel>()
                .Name("TreeList")
                .Columns(columns => columns.Bound(o => o.OrderID)
                    .Locked()
                )
             )
             

Locked(System.Boolean)

Makes the column static or not. By default all columns are not locked.

Parameters

value - System.Boolean

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
             @(Kendo().TreeList<OrderViewModel>()
                .Name("TreeList")
                .Columns(columns => columns.Bound(o => o.OrderID)
                    .Locked((bool)ViewData["locked"])
                )
             )
             

Lockable(System.Boolean)

If set to false the column will remain in the side of the grid into which its own locked configuration placed it.

Parameters

value - System.Boolean

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
             @(Kendo().TreeList<OrderViewModel>()
                .Name("TreeList")
                .Columns(columns => columns.Bound(o => o.OrderID)
                    .Lockable((bool)ViewData["lockable"])
                )
             )
             

Hidden(System.Boolean)

Makes the column hidden or not. By default all columns are not hidden. Hidden columns are rendered in the output HTML but are hidden.

Parameters

value - System.Boolean

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
             @(Kendo().TreeList<OrderViewModel>()
                .Name("TreeList")
                .Columns(columns => columns.Bound(o => o.OrderID)
                    .Hidden((bool)ViewData["hidden"])
                )
             )
             

Hidden()

Makes the column hidden or not. By default all columns are not hidden. Hidden columns are rendered in the output HTML but are hidden.

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
             @(Kendo().TreeList<OrderViewModel>()
                .Name("TreeList")
                .Columns(columns => columns.Bound(o => o.OrderID)
                    .Hidden((bool)ViewData["hidden"])
                )
             )
             

Columns(System.Action)

The columns configuration for the TreeListColumnGroupBuilder

Parameters

configurator - System.Action<TreeListColumnFactory>

The action defining the configuration.

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
            	@(Html.Kendo().TreeList<OrderViewModel>()
            	    .Name("treelist")
            		.Columns(columns =>
            		{
            			columns.Add();
            		})
            	)
             

HeaderTemplate(System.String)

Sets the header template for the column. If sorting is enabled, the template content wrapper must have a k-link CSS class.

Parameters

template - System.String

The string defining the template.

RETURNS

Returns the current TreeListColumnGroupBuilder instance.

Example

Razor
 
            	@(Html.Kendo().TreeList<OrderViewModel>()
            	    .Name("treelist")
            		.Columns(columns =>
            		{
            			columns.Add().HeaderTemplate("HeaderTemplate");
            		})
            	)