Modal window close and parent window scolls

7 posts, 0 answers
  1. Tom
    Tom avatar
    5 posts
    Member since:
    May 2008

    Posted 10 Feb 2010 Link to this post

    I have an odd problem. I have two iframes on the page, one on top of the other. I open a model window in the bottom iframe. The window manager is located in the parent frame so that the modal window can cover the whole page. Now the problem is if I close the modal window in IE, the parent window scrolls up automatically. It does not happen in Firefox. You can see what I mean here. https://apps.kd.iu.edu/website1/

    Any ideas? I am using the latest release. Thanks.
    tom
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Feb 2010 Link to this post

    Hi Tom,

    I believe that the reason for this is the postback that you do in the href property. Could you please let me know why you need this?
    <a onclick="RadWindowClose();" id="b2" href="javascript:__doPostBack('b2','')">Close this</a>


    Kind regards,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Tom
    Tom avatar
    5 posts
    Member since:
    May 2008

    Posted 16 Feb 2010 Link to this post

    Georgi,

    That is auto generated by asp.net. We are using a server side linkbutton to submit data back. Thanks.

    Tom
  4. Tom
    Tom avatar
    5 posts
    Member since:
    May 2008

    Posted 16 Feb 2010 Link to this post

    Georgi,

    Actually even after I change it to  this, it still scrolls in IE. More ideas? Thanks.

    <

     

    a ID="b2" href="#" onclick="RadWindowClose();">Close this</a>

     


    or

    <

     

    a ID="b2" href="javascript:RadWindowClose();">Close this</a>

    Tom

     

  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 18 Feb 2010 Link to this post

    Hi Tom,

    If you postback the page, it will scroll - this is not directly related to the RadWindow control. Since you need the server-side functionality of the asp:linkbutton control, I would suggest to ajaxify that button in order to avoid the postback.


    Kind regards,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Tom
    Tom avatar
    5 posts
    Member since:
    May 2008

    Posted 18 Feb 2010 Link to this post

    Georgi,

    The page scrolls even after I change the link to a regular a link without postback like this.

    <a ID="b2" href="#" onclick="RadWindowClose();">Close this</a>

     

     


    or

    <a ID="b2" href="javascript:RadWindowClose();">Close this</a>

  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 22 Feb 2010 Link to this post

    Hi Tom,

    In such case, please open a support ticket and send us that project so we could investigate further.

    All the best,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top