RadWindowManager OnClientCommand Issue

7 posts, 0 answers
  1. Michael
    Michael avatar
    43 posts
    Member since:
    Mar 2013

    Posted 01 May 2013 Link to this post

    This is an easy one I am sure....when I maximize one of the RadWindows on the page, I want to minimize all the others. The problem I am having is the minimizeAll function calls it on all windows, how do I exclude the sender? This is what I am using.

    function OnClientCommand(sender, eventArgs)
           {
                   var command = eventArgs.get_commandName();
                   var oManager = $find("<%=myManager.ClientID %>");
                   if (command == 'Maximize')
                   {
                       oManager.minimizeAll();
                   }//end if
                    
                   
           }//end function
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 01 May 2013 Link to this post

    Hello Michael,

    I tried to reproduce the problem using the provided sample code but to no avail. I have prepared a video demonstrating my test. Could you please see if I am missing something?
    http://screencast.com/t/jr7P8tky5R6

    Looking forward to hearing from you,
    Dobromir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael
    Michael avatar
    43 posts
    Member since:
    Mar 2013

    Posted 01 May 2013 Link to this post

    Is there a reason you only put the OnClientCommand event on wnd1? Because I have that function wired to every window on the page.
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 01 May 2013 Link to this post

    Hi again Michael,

    No, there was no specific reason for having the event handled only on one of the RadWindows, nevertheless, I have the same behavior even if all the windows have the same handler assigned.

    Kind regards,
    Dobromir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Michael
    Michael avatar
    43 posts
    Member since:
    Mar 2013

    Posted 01 May 2013 Link to this post

    It seems the minimize is working...but I am getitng the following error...and the maximized window is not loading...the contents are blank...

    Microsoft JScript runtime error: 'Array' is undefined

    Michael
  7. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 01 May 2013 Link to this post

    Hello again,

    Could you please open a formal support ticket and provide sample fully runnable project along with the exact steps to reproduce the issue, so we can examine and debug it locally? Also, could you please provide additional information on the specific scenario?
    • Which version of RadControls for ASP.NET AJAX and .NET Framework are used in the application?
    • Under which browser and its version the problem occurs?

    Kind regards,
    Dobromir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  8. Michael
    Michael avatar
    43 posts
    Member since:
    Mar 2013

    Posted 01 May 2013 Link to this post

    Ticket opened thank you for your help.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017