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

ReOpening same name minimized window issue

2 Answers 24 Views
Window
This is a migrated thread and some comments may be shown as answers.
xxxtreme_pasaway
Top achievements
Rank 1
xxxtreme_pasaway asked on 14 Oct 2008, 03:28 AM
The issue:
I opened a radwindow with the name window1. I then minimized the said radwindow and now in minimized state. I then clicked a link to reopen the window1 radwindow, what happens is that the minimized window1 block floats from the minimize zone up to the center of the page.

I tried to browse the forum but i wasnt able to find a solution. Ive also tested the previous radwindow release and Ive noticed that the behaviour in that previous version is correct unlike in the latest version.

Id apprecate any help i can get, Thanks and more power!

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Oct 2008, 08:45 AM
Hi xxxtreme_pasaway,

Could you please tell me in what version does the control behave different? I am asking you this because the behavior that you experience is expected - showing a RadWindow is not restoring it. For scenario like yours, I would suggest to use an if/else statement that would check if a window has been previously minimized and if so - to restore it:

function openWin() 
    var oWnd = $find("<%= RadWindow1.ClientID %>");  
    if(oWnd.isMinimized()) 
    { 
        oWnd.restore(); 
    } 
    oWnd.show(); 



All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
xxxtreme_pasaway
Top achievements
Rank 1
answered on 21 Oct 2008, 06:57 AM
thanks, youve given me an idea on how to fix the issue. it is now fixed :)
Tags
Window
Asked by
xxxtreme_pasaway
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
xxxtreme_pasaway
Top achievements
Rank 1
Share this question
or