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

OnClientMouseOut

OnClientMouseOut (mouseOut client-side event)

The mouseOut event is fired when the user moves the mouse pointer over the control.

The event handler receives two parameters:

  1. The instance of the clicked RadButton control

  2. An eventArgs parameter of type Telerik.Web.UI.RadButtonEventArgs, containing the following properties and methods:

    • get_commandName() - returns the value assigned to the RadButton's CommandName property

    • get_commandArgument() - returns the value assigned to the RadButton's CommandArgument property

<telerik:RadButton ID="RadButton1" runat="server" Text="Click me!" CommandName="SubmitForm"
    CommandArgument="Arg1" OnClientMouseOut="onMouseOut">
</telerik:RadButton>
<script>
    function onMouseOut(button, args) {
        var commandName = args.get_commandName();
        var commandArg = args.get_commandArgument();
        var text = button.get_text();
        alert("The mouse went over a button with \r\n Text: " + text + ", \r\n CommandName: " + commandName + ", \r\n CommandArgumen: " + commandArg);
    }
</script>
In this article