Windows resizing automaticly by the URL in statusbar

6 posts, 0 answers
  1. Marc
    Marc avatar
    17 posts
    Member since:
    Sep 2012

    Posted 25 Oct 2007 Link to this post

    Hi,

    I fixe my window size into javascipt :
    var oWnd=window.radopen(""EditWindowURL.aspx?1&Type=0,null);
    oWnd.SetSize(200,200)
    oWnd.Center()

    And it's work well except if the URL we can see in status bar is longer than window width. In this case the window is resize with the "size" of URL.

    thx
  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 25 Oct 2007 Link to this post

    You could use request.url.tostring to get the url into a string, and then count the number or characters in the string.  I have no idea how wide a window would need to be if, say, the string length was 40 characters, but some trial & error would probably help to find the answer.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marc
    Marc avatar
    17 posts
    Member since:
    Sep 2012

    Posted 09 Jan 2008 Link to this post

    Hi,

    I made a little movie for explain what happen with window (i'm now in Prometheus Q3 1218)

    I don't know how to post my file
  5. George
    Admin
    George avatar
    859 posts

    Posted 09 Jan 2008 Link to this post

    Hi Reynald,

    You cannot post files in forum threads. Please, open a support ticket and send us the video along with information about the issue.

    Kind regards,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Kevin Wolf
    Kevin Wolf avatar
    10 posts
    Member since:
    May 2005

    Posted 04 Feb 2008 Link to this post

    I'm running into this same issue.  My URL string length is wider than the window and when the url is placed in the status bar it resizes the window as well.  It appears that in FireFox 2.x it works fine but in IE 7.0 I run into this problem.
  7. George
    Admin
    George avatar
    298 posts

    Posted 05 Feb 2008 Link to this post

    Hello Kevin Wolf,

    Please find the attached solution, feel free to rework it for your specific scenario. 

    Another solution is to set the attribute VisibleStatusbar=false in the window declaration, but your statusbar will not be visible in this case.

    Regards,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017