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

RadWindowManager OnClientCommand Issue

6 Answers 54 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 01 May 2013, 01:35 PM

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

6 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 01 May 2013, 03:08 PM
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.
0
Michael
Top achievements
Rank 1
answered on 01 May 2013, 03:13 PM
Is there a reason you only put the OnClientCommand event on wnd1? Because I have that function wired to every window on the page.
0
Dobromir
Telerik team
answered on 01 May 2013, 03:17 PM
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.
0
Michael
Top achievements
Rank 1
answered on 01 May 2013, 03:21 PM
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
0
Dobromir
Telerik team
answered on 01 May 2013, 03:26 PM
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.
0
Michael
Top achievements
Rank 1
answered on 01 May 2013, 04:32 PM
Ticket opened thank you for your help.
Tags
Window
Asked by
Michael
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Michael
Top achievements
Rank 1
Share this question
or