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

PanelBarEventBuilder

Methods

Activate(System.String)

Defines the handler of the Activate client-side event. Fires when the an item of the PanelBar is activated.

For more information see Activate event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().PanelBar()
                .Name("panelbar")
                .Events(events => events
                    .Activate("onActivate")
                )
            )

Activate(System.Func)

Defines the handler of the Activate client-side event. Fires when the an item of the PanelBar is activated.

For more information see Activate event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().PanelBar()
               .Name("panelbar")
               .Events(events => events.Activate(@<text>
                  function(e) {
                      // Handle the Activate event inline.
                  }
                  </text>)
               )
             )

Collapse(System.String)

Defines the handler of the Collapse client-side event. Fires when the an item of the PanelBar is collapsed.

For more information see Collapse event.

Parameters

handler - System.String

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

Example


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

Collapse(System.Func)

Defines the handler of the Collapse client-side event. Fires when the an item of the PanelBar is collapsed.

For more information see Collapse event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().PanelBar()
               .Name("panelbar")
               .Events(events => events.Collapse(@<text>
                  function(e) {
                      // Handle the Collapse event inline.
                  }
                  </text>)
               )
             )

ContentLoad(System.String)

Defines the handler of the ContentLoad client-side event. Fires when the content is fetched through an AJAX request.

For more information see ContentLoad event.

Parameters

handler - System.String

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

Example


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

ContentLoad(System.Func)

Defines the handler of the ContentLoad client-side event. Fires when the content is fetched through an AJAX request.

For more information see ContentLoad event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().PanelBar()
               .Name("panelbar")
               .Events(events => events.ContentLoad(@<text>
                  function(e) {
                      // Handle the ContentLoad event inline.
                  }
                  </text>)
               )
             )

DataBound(System.String)

Defines the handler of the DataBound client-side event. Fires 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.

Example


             @( Html.Kendo().PanelBar()
                .Name("panelbar")
                .Events(events => events
                    .DataBound("onDataBound")
                )
            )

DataBound(System.Func)

Defines the handler of the DataBound client-side event. Fires after the DataSource Change event has been processed (adding/removing items).

For more information see DataBound event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().PanelBar()
               .Name("panelbar")
               .Events(events => events.DataBound(@<text>
                  function(e) {
                      // Handle the DataBound event inline.
                  }
                  </text>)
               )
             )

Error(System.String)

Defines the handler of the Error client-side event. Fires when the AJAX request results in an error. Note: This event will not fire when using jQuery v3.x.

For more information see Error event.

Parameters

handler - System.String

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

Example


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

Error(System.Func)

Defines the handler of the Error client-side event. Fires when the AJAX request results in an error. Note: This event will not fire when using jQuery v3.x.

For more information see Error event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().PanelBar()
               .Name("panelbar")
               .Events(events => events.Error(@<text>
                  function(e) {
                      // Handle the Error event inline.
                  }
                  </text>)
               )
             )

Expand(System.String)

Defines the handler of the Expand client-side event. Fires when an item of the PanelBar is expanded.

For more information see Expand event.

Parameters

handler - System.String

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

Example


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

Expand(System.Func)

Defines the handler of the Expand client-side event. Fires when an item of the PanelBar is expanded.

For more information see Expand event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().PanelBar()
               .Name("panelbar")
               .Events(events => events.Expand(@<text>
                  function(e) {
                      // Handle the Expand event inline.
                  }
                  </text>)
               )
             )

Select(System.String)

Defines the handler of the Select client-side event. Fires when an item of the PanelBar is selected by the user.

For more information see Select event.

Parameters

handler - System.String

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

Example


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

Select(System.Func)

Defines the handler of the Select client-side event. Fires when an item of the PanelBar is selected by the user.

For more information see Select event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


            @(Html.Kendo().PanelBar()
               .Name("panelbar")
               .Events(events => events.Select(@<text>
                  function(e) {
                      // Handle the Select event inline.
                  }
                  </text>)
               )
             )

In this article
Not finding the help you need?