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

Why this code cause a reload of my window

1 Answer 62 Views
Window
This is a migrated thread and some comments may be shown as answers.
ericc34
Top achievements
Rank 1
ericc34 asked on 28 Apr 2011, 04:50 PM
When i minimize my window in a tabstrip like your demo and I click on tab to show window like this, The content of my window is reloaded and i lost all my change before minimize. If i look in source of my page, i see change i've made but restore cause a reload. Why ?

 

 

function ShowWindow(win) {

 

 

 

 

if (!win.isVisible()) {

 

 

win.show();

 

win.restore();

 

 

 

//if the window was maximized before client minimizes it, we need to restore

 

 

 

//its maximized state

 

 

 

if (win._Maximized) {

 

 

win.maximize();

 

win._Maximized =

 

null;

 

 

}

 

}

 

 

 

//ensure that the currently active RadWindow will have the highest z-Index.

 

 

 

var popupElem = win.get_popupElement();

 

 

 

 

var oldZindex = parseInt(popupElem.style.zIndex);

 

 

 

 

var styleZIndex = win.get_stylezindex();

 

 

 

 

var newZIndex = (styleZIndex) ? styleZIndex : Telerik.Web.UI.RadWindowUtils.get_newZindex(oldZindex);

 

 

popupElem.style.zIndex =

 

"" + newZIndex;

 

 

win.setActive(

 

true);

 

 

}

1 Answer, 1 is accepted

Sort by
0
Collin
Top achievements
Rank 1
answered on 01 Sep 2011, 10:00 PM
Tags
Window
Asked by
ericc34
Top achievements
Rank 1
Answers by
Collin
Top achievements
Rank 1
Share this question
or