Why this code cause a reload of my window

2 posts, 0 answers
  1. ericc34
    ericc34 avatar
    91 posts
    Member since:
    Jul 2006

    Posted 28 Apr 2011 Link to this post

    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);

     

     

    }

  2. Collin
    Collin avatar
    24 posts
    Member since:
    Feb 2008
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top