ShowStatusBar=true not working

13 posts, 0 answers
  1. Kermit
    Kermit avatar
    20 posts
    Member since:
    Jan 2012

    Posted 20 Jan 2012 Link to this post

    Does ShowStatusBar=true only work if grid paging is enabled?  I have grid scrolling enabled but not grid paging, and the status bar does not display.
  2. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 21 Jan 2012 Link to this post

    Hi,

    As this article says the only requirement to see the status bar is to enable it by setting the ShowStatusBar property to true. However, the status bar is intended primarily for use when RadGrid is used with RadAjaxManager to indicate when RadGrid is performing asynchronous AJAX requests.

    How you are checking that the StatusBar is not shown?

    Kind regards,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kermit
    Kermit avatar
    20 posts
    Member since:
    Jan 2012

    Posted 23 Jan 2012 Link to this post

    I'm visually not seeing it.  I guess I'm expecting to see a row just below the footer row that would contain either "Loading..." or "Done".

    I am using a RadAjaxManager. I tried disabling grid scrolling and enabling grid paging, but still the StatusBar does not display.
  5. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 24 Jan 2012 Link to this post

    Hello,

    I have created screenshot which is showing the StatusBar in action. The screenshot is taken from the Hierarchy online demo.

    Preview the screenshot and check this online demo to see how the Status bar is enabled and used.

    Let me know if I can be of any other help.

    Greetings,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  6. Harsha
    Harsha avatar
    1 posts
    Member since:
    Jun 2012

    Posted 27 Jun 2012 Link to this post

    Hi Andrey,

    I am using RAD Controls in my application in one page i am using grid control and rad statusbar... where as after finishing all the page operations the status bar is not responding[i.e., it is not showing anything like done or error] i hope the data is not binding to rad grid that is why it is not responding but where as i am not getting any error from my server script...

    How do i know what is went wrong. Pls help me i am new to telerik.. :(
    Also pls let me know how to find what is the datasource attached to radgrid control . as per my knowledge even if there is no data source it is showing 1 row by default


    Thanks & Regards

    Harsha
  7. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 27 Jun 2012 Link to this post

    Hello,

    I am not sure what do you mean by RadStatusBar. Did you mean the status bar of RadGrid?

    If this is the case, the status bar won't shown neither done nor error message it is used mostly ti display progress indicator during Ajax request as described in my previous posts.

    And for the datasource, you could check the source code of RadGrid if it has DataSourceID or DataSource property set it should bind normally.

    You could check this section of our online demo application for an overview of RadGrid binding mechanism.
    Kind regards,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  8. Evgeniy
    Evgeniy avatar
    11 posts
    Member since:
    Mar 2012

    Posted 28 Jul 2012 Link to this post

    Hi, All!

    I have the same problem. I'm saying about status bar like on Andrey's screenshot (attached above) I've set ShowStatusBar=true. And PageSize=10. Also I use manual binding.

    If I have 5 items in my datasource object then I can't see pager and I can't see status bar also. But if I have 15 items I can see pager and I can see status bar accordingly. 

    But is there any way to display status bar without pager? (For example when I have 5 items)

    Thanks,
    Eugene
  9. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 01 Aug 2012 Link to this post

    Hi,

    I am afraid that you could not use StatusBar without Pager, because the status bar is incorporated in the pager item. Even if you do not need pager you could set the PagerStyle-AlwaysVisible="true" property and thus you will see the status bar.


    Regards,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  10. Evgeniy
    Evgeniy avatar
    11 posts
    Member since:
    Mar 2012

    Posted 01 Aug 2012 Link to this post

    Great! PagerStyle-AlwaysVisible="true"  is what I looked for.

    Thank you!
  11. brian
    brian avatar
    36 posts
    Member since:
    Jul 2010

    Posted 24 Oct 2013 Link to this post

    How can I trigger this to show based on other ajax events?  For example, I have a droplist that when changed will change the data in the grid.  I want the grid to show it's Status spinner.   thanks.
  12. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 29 Oct 2013 Link to this post

    Hello Brian,

    In scenarios like the described one it would be better option to show RadAjaxLoadingPanel over the RadGrid control when the data is changed instead of the StatusBar. See the help topic below and verify if it covers your requirements:
    http://www.telerik.com/help/aspnet-ajax/ajax-loadingpanel.html

    Regards,
    Maria Ilieva
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  13. brian
    brian avatar
    36 posts
    Member since:
    Jul 2010

    Posted 29 Oct 2013 Link to this post

    We use that method but I prefer not to show it over the grid as we are also using Splitter in some cases where the grid is not entirely visible.   I want to activate the grid's StatusBar control.   How can I do that?
  14. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Nov 2013 Link to this post

    Hello Brian,

    In order to force the StatusBar in Grid to appear when Ajax request is initiated form external control you could add the mentioned control update the RadGrid in the RadAjaxManager settings and manually show and hose the status bar handling the client OnRequestStart and OnResponseEnd events of the RadAjaxManager. See the example below:

    ASPX:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            onajaxrequest="RadAjaxManager1_AjaxRequest">
            <AjaxSettings>
                 <telerik:AjaxSetting AjaxControlID="btn1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelHeight="100%" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
           <ClientEvents OnRequestStart="ShowStatusBar()" OnResponseEnd="HideStatusBar()" />
        </telerik:RadAjaxManager>
        <asp:Button runat="server" ID="btn1"/>
       <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Default"></telerik:RadAjaxLoadingPanel>
        
            <telerik:RadGrid runat="server" ID="RadGrid1" ShowStatusBar="true" AllowPaging="true" PageSize="3" CellSpacing="0" Visible="true" DataSourceID="SqlDataSource1"
               .
               .
               .
            </telerik:RadGrid>
     
    JS:
    <script type="text/javascript">
     
                function ShowStatusBar() {
                    var grid = $find("<%= RadGrid1.ClientID %>");
                    $get(grid._statusLabelID).style["visibility"] = "visible";
     
                }
     
                function HideStatusBar() {
                    debugger;
                    var grid = $find("<%= RadGrid1.ClientID %>");
                    $get(grid._statusLabelID).style["visibility"] = "hidden";
     
                }
    </script>

    I hope this helps.

    Regards,
    Maria Ilieva
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017