ToolBarEventBuilder

Methods

Click(System.String)

Defines the handler of the Click client-side event. Fires when the user clicks a command button.

For more information see Click event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.Click("onClick"))
            )
             

Click(System.Func)

Defines the handler of the Click client-side event. Fires when the user clicks a command button.

For more information see Click event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.Click(@<text>
                    function(e) {
                        // Handle the Click event inline.
                    }
                    </text>)
                )
             )
             

Close(System.String)

Defines the handler of the Close client-side event. Fires when the SplitButton's popup closes.

For more information see Close event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.Close("onClose"))
            )
             

Close(System.Func)

Defines the handler of the Close client-side event. Fires when the SplitButton's popup closes.

For more information see Close event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.Close(@<text>
                    function(e) {
                        // Handle the Close event inline.
                    }
                    </text>)
                )
             )
             

Open(System.String)

Defines the handler of the Open client-side event. Fires when the Split Button's popup opens.

For more information see Open event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.Open("onOpen"))
            )
             

Open(System.Func)

Defines the handler of the Open client-side event. Fires when the Split Button's popup opens.

For more information see Open event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.Open(@<text>
                    function(e) {
                        // Handle the Open event inline.
                    }
                    </text>)
                )
             )
             

Toggle(System.String)

Defines the handler of the Toggle client-side event. Fires when the user changes the checked state of a toggle button.

For more information see Toggle event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.Toggle("onToggle"))
            )
             

Toggle(System.Func)

Defines the handler of the Toggle client-side event. Fires when the user changes the checked state of a toggle button.

For more information see Toggle event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.Toggle(@<text>
                    function(e) {
                        // Handle the Toggle event inline.
                    }
                    </text>)
                )
             )
             

OverflowClose(System.String)

Defines the handler of the OverflowClose client-side event. Fires when the overflow popup container is about to close.

For more information see OverflowClose event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.OverflowClose("onOverflowClose"))
            )
             

OverflowClose(System.Func)

Defines the handler of the OverflowClose client-side event. Fires when the overflow popup container is about to close.

For more information see OverflowClose event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.OverflowClose(@<text>
                    function(e) {
                        // Handle the OverflowClose event inline.
                    }
                    </text>)
                )
             )
             

OverflowOpen(System.String)

Defines the handler of the OverflowOpen client-side event. Fires when the overflow popup container is about to open.

For more information see OverflowOpen event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
            @(Html.Kendo().ToolBar()
                    .Name("toolBar")
                    .Events(e => e.OverflowOpen("onOverflowOpen"))
            )
             

OverflowOpen(System.Func)

Defines the handler of the OverflowOpen client-side event. Fires when the overflow popup container is about to open.

For more information see OverflowOpen event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ToolBarEventBuilder .

Example

Razor
 
             @(Html.Kendo().ToolBar()
               .Name("toolBar")
               .Events(events => events.OverflowOpen(@<text>
                    function(e) {
                        // Handle the OverflowOpen event inline.
                    }
                    </text>)
                )
             )
             

KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ToolBar is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see KendoKeydown event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of ToolBarEventBuilder .

KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ToolBar is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see KendoKeydown event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ToolBarEventBuilder .