Minimize radwindow

2 posts, 1 answers
  1. Dan
    Dan avatar
    14 posts
    Member since:
    Jul 2013

    Posted 29 Nov 2013 Link to this post

    Is it possible to fire an event when the radwindow is minimized?

    Thankyou
    dan
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Nov 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top