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

PanelBarEventBuilder

Methods

Expand(System.Func)

Defines the inline handler of the Expand client-side event

For more information see Expand event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


             @( Html.Kendo().PanelBar()
                       .Name("PanelBar")
                       .Events(events => events.Expand(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )

Expand(System.String)

Defines the name of the JavaScript function that will handle the the Expand client-side event.

For more information see Expand event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().PanelBar()
                        .Name("PanelBar")
                        .Events(events => events.Expand("expand"))
            )

ContentLoad(System.Func)

Defines the inline handler of the ContentLoad client-side event

For more information see ContentLoad event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


             @( Html.Kendo().PanelBar()
                       .Name("PanelBar")
                       .Events(events => events.ContentLoad(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )

ContentLoad(System.String)

Defines the name of the JavaScript function that will handle the the ContentLoad client-side event.

For more information see ContentLoad event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().PanelBar()
                        .Name("PanelBar")
                        .Events(events => events.ContentLoad("contentLoad"))
            )

DataBound(System.Func)

Defines the inline handler of the dataBound client-side event

For more information see DataBound event.

Parameters

onDataBoundAction - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


            @( Html.Kendo().PanelBar()
                      .Name("PanelBar")
                      .Events(events => events.DataBound(
                           @<text>
                           function(e) {
                               // event handling code
                           }
                           </text>
                      ))
                      .Render();
            )

DataBound(System.String)

Triggered after the dataSource change event has been processed (adding/removing items);

For more information see DataBound event.

Parameters

handler - System.String

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

Activate(System.Func)

For more information see Activate event.

Parameters

handler - System.Func<Object,Object>

Activate(System.String)

For more information see Activate event.

Parameters

handler - System.String

Collapse(System.Func)

Defines the inline handler of the Collapse client-side event

For more information see Collapse event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


             @( Html.Kendo().PanelBar()
                       .Name("PanelBar")
                       .Events(events => events.Collapse(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )

Collapse(System.String)

Defines the name of the JavaScript function that will handle the the Collapse client-side event.

For more information see Collapse event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().PanelBar()
                        .Name("PanelBar")
                        .Events(events => events.Collapse("collapse"))
            )

Select(System.Func)

Defines the inline handler of the Select client-side event

For more information see Select event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


             @( Html.Kendo().PanelBar()
                       .Name("PanelBar")
                       .Events(events => events.Select(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )

Select(System.String)

Defines the name of the JavaScript function that will handle the the Select client-side event.

For more information see Select event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().PanelBar()
                        .Name("PanelBar")
                        .Events(events => events.Select("select"))
            )

Error(System.Func)

Defines the inline handler of the Error client-side event

For more information see Error event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


             @( Html.Kendo().PanelBar()
                       .Name("PanelBar")
                       .Events(events => events.Error(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
                       .Render();
            )

Error(System.String)

Defines the name of the JavaScript function that will handle the the Error client-side event.

For more information see Error event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().PanelBar()
                        .Name("PanelBar")
                        .Events(events => events.Error("onError"))
            )

In this article
Not finding the help you need?