This is a migrated thread and some comments may be shown as answers.

ShowStatusBar=true not working

12 Answers 321 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kermit
Top achievements
Rank 1
Kermit asked on 20 Jan 2012, 07:54 PM
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.

12 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 21 Jan 2012, 03:37 PM
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
0
Kermit
Top achievements
Rank 1
answered on 23 Jan 2012, 03:55 PM
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.
0
Andrey
Telerik team
answered on 24 Jan 2012, 05:19 PM
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
0
Harsha
Top achievements
Rank 1
answered on 27 Jun 2012, 11:20 AM
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
0
Andrey
Telerik team
answered on 27 Jun 2012, 02:04 PM
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.
0
Evgeniy
Top achievements
Rank 1
answered on 28 Jul 2012, 01:25 PM
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
0
Andrey
Telerik team
answered on 01 Aug 2012, 11:54 AM
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.
0
Evgeniy
Top achievements
Rank 1
answered on 01 Aug 2012, 12:02 PM
Great! PagerStyle-AlwaysVisible="true"  is what I looked for.

Thank you!
0
brian
Top achievements
Rank 1
answered on 24 Oct 2013, 05:53 PM
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.
0
Maria Ilieva
Telerik team
answered on 29 Oct 2013, 11:51 AM
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.
0
brian
Top achievements
Rank 1
answered on 29 Oct 2013, 05:32 PM
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?
0
Maria Ilieva
Telerik team
answered on 01 Nov 2013, 11:55 AM
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.
Tags
Grid
Asked by
Kermit
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Kermit
Top achievements
Rank 1
Harsha
Top achievements
Rank 1
Evgeniy
Top achievements
Rank 1
brian
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or