This is a migrated thread and some comments may be shown as answers.

Minimize radwindow

1 Answer 90 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 29 Nov 2013, 07:21 PM
Is it possible to fire an event when the radwindow is minimized?

Thankyou
dan

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 30 Nov 2013, 03:26 AM
Hi Dan,

The OnClientCommand event will fires when the commands Pin, Reload, Minimize and Maximize are executed (when the user presses a titlebar button). Its event arguments object provides the get_commandName() method which returns the name of the command that was just fired. Please have a look into the sample code snippet which works as expected.

ASPX:
<telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true" OnClientCommand="OnClientCommand1">
</telerik:RadWindow>

JavaScript:
<script type="text/javascript">
    function OnClientCommand1(sender, args) {
        if (args.get_commandName() == "Minimize") {
            alert("Fired");
            //your code
        }
    }
</script>

Thanks,
Shinu.
Tags
Window
Asked by
Dan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or