disable URL at bottom of window

15 posts, 0 answers
  1. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 17 Mar 2008 Link to this post

    Love the RadWindow,

    I just cant't find the property to control (actually turnoff) the display of the URL at the bottom of the window?

    thanks

    david

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 18 Mar 2008 Link to this post

    Hello David,

    You can either hide the entire statusbar by setting the VisibleStatusbar property to false, or as an alternative, you can use the client-side set_Status() method to change the status to a custom string.




    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul
    Paul avatar
    11 posts
    Member since:
    Aug 2004

    Posted 06 Jun 2008 Link to this post

    Is there a way to disable the status bar in javascript after the page is loaded.

    Ie on page load so the user get the progresss bar then the status bar hides ?

    thanks
  5. kgg
    kgg avatar
    12 posts
    Member since:
    Feb 2007

    Posted 08 Jun 2008 Link to this post

    I have somewhat the same problem here.I need to hide the URL from the statusbar, but I like the loading progress animation. set_status doesn't seem to work, unless I'm doing something wrong.

    I'm using this code:

    <telerik:RadWindowManager ID="RadWindowManager1" Width="500px" Height="400px" ShowContentDuringLoad="false" 
          Behaviors="Close,Resize" 
          runat="server" Animation="Slide"


    var oWnd = radopen("/UserControls/admin/UserView.aspx?UserName=" + UserName, "RadWindow1" ); 
    oWnd.set_title(Navn); 
    oWnd.set_status(" "); 


    This does set the statusbar to " " when the window is shown, before the window is completely loaded, but when the window is loaded the URL is shown again.

    i can obviously use VisibleStatusbar="false", but as mentioned I like the load progress..

    Thanks,

    Kjell
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 09 Jun 2008 Link to this post

    Hello kjellgaute,

    By design RadWindow will automatically show the Url of the page in the statusbar when the page is loaded. If you want to change it, you can do it after the content page is fully loaded:

    oWnd.set_title(Navn);
    oWnd.add_pageLoad(function(){oWnd.set_status("  "); });





    Kind regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 09 Jun 2008 Link to this post

    Hmm, that actually does not work for me, I still get the url at the bottom?

    var oWindow = window.radopen("Admin-Lecture-Update.aspx?LecturesID=" + id + "&CourseID="+CourseID, null);

    oWindow.SetSize (700, 650);

    oWindow.SetTitle (

    "Edit Lecture");

    oWindow.Center();

    oWindow.add_pageLoad(

    function(){oWnd.set_status(" "); });

  8. kgg
    kgg avatar
    12 posts
    Member since:
    Feb 2007

    Posted 09 Jun 2008 Link to this post

    Did you try this?

    oWindow.add_pageLoad(function(){oWindow.set_status("  "); });
  9. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 09 Jun 2008 Link to this post

    oops

    thanks
  10. Ravi
    Ravi avatar
    13 posts
    Member since:
    Oct 2008

    Posted 18 Nov 2008 Link to this post

    thank you(its very useful to me)
  11. Clive Hoggar
    Clive Hoggar avatar
    334 posts
    Member since:
    Nov 2008

    Posted 26 Feb 2009 Link to this post

    Can you give me this in vb? I couldn't convert it without errors

    Thanks

    Clive
  12. Charles
    Charles avatar
    10 posts
    Member since:
    Jan 2009

    Posted 10 Mar 2009 Link to this post

    seems like no matter what i try it will not set or reset the status bar text... here is what i am using 

     

    function setstatusbar() {

     

     

     

    var oWindow = GetRadWindow();

     

     

     

    var text = "WeighIn Screen";

     

    oWindow.set_status(text);

     

     

    //oWindow.add_pageLoad(function() { oWindow.set_status(text); });

     

     

    }

    I am calling this from the onload property in the body tag 

     

    <

     

     

    body onload="javascript:setstatusbar();">

     

     

     

     

    ...the oWindow.add_pageLoad(function() { oWindow.set_status(text); }); call throws an error. Thanks for your help...

  13. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 Mar 2009 Link to this post

    Hello Charles,

    Try setting the onload property like this:

        <script language="javascript" type="text/javascript">   
                function GetRadWindow() {   
                    var oWindow = null;   
                    if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog   
                    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)   
                    return oWindow;   
                }   
     
            function setstatusbar()  
            { 
                var oWindow = GetRadWindow(); 
                var text = "WeighIn Screen"
                oWindow.set_status(text); 
            } 
        </script> 
     
    </head> 
    <body onload="setstatusbar();"

    If you still experience problems, please open a support ticket and send us a small sample project so we can check it.


    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  14. Charles
    Charles avatar
    10 posts
    Member since:
    Jan 2009

    Posted 11 Mar 2009 Link to this post

    sorry Georgi still doesnt clear the status, will start a ticket, Thanks... unfortunatley due to security issues cant send my project but the jist of the evolution is that I am opening a radwindow from a context menu on a radgrid. This is how i am opening the window:

    case

     

    "Add WeighIn Record":

     

     

    var winAddRecord = new RadWindow

     

    {

    ID =

    "UseListDialog",

     

    Modal =

    true,

     

    Height = 300,

    Behaviors = Telerik.Web.UI.

    WindowBehaviors.Move | Telerik.Web.UI.WindowBehaviors.Close,

     

    ShowContentDuringLoad =

    true,

     

    VisibleStatusbar =

    true,

     

    Width = 400,

    NavigateUrl = (

    "~/addweighin.aspx?ShipShapeID=" + this.txtShipShapeID.Value + "&Operation=Add"),

     

    VisibleOnPageLoad =

    true

     

    };

    RadWindowManager1.Windows.Add(winAddRecord);

     

    break;

    using the exact code you posted yesterday to try and clear the statusbar on page load:

     

     

    function setstatusbar() {

     

     

    var oWnd = GetRadWindow();

     

     

    var text = "WeighIn Screen";

     

    oWnd.set_status(text);

     

    //oWnd.set_title(Navn);

     

     

     

     

     

    //oWnd.add_pageLoad(function() { oWnd.set_status(" "); });

     

     

     

     

    }

     

    </script>

     

     

     

     

     

    </telerik:RadCodeBlock>

     

    </

     

    head>

     

    <

     

    body onload="setstatusbar();">

     

  15. Veenu
    Veenu avatar
    45 posts
    Member since:
    Jun 2008

    Posted 05 Apr 2010 Link to this post

    hi,

    i have one question
    when we add pageload function like this
    oWnd.add_pageLoad(function(){oWnd.set_status("  "); });

    how will we remove this function using oWnd.remove_pageLoad()

    this function will be added each time when you opens a window so best is to remove this function in onClientClose
    but how can i remove this function using remove_pageLoad()

    Thanks
  16. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 06 Apr 2010 Link to this post

    Hello Veenu,

    You could move the code in a separate function and remove the closing handler there:

    function openWin()
    {
        //your code here
        //add the closing handler
        oWnd.add_pageLoad(OnClientClose);
    }
     
    function OnClientClose(oWnd,args)
    {
        oWnd.set_status("  ");
        oWnd.remove_close(OnClientClose);
    }



    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017