The GridStatusBarItem appears below all other items in Telerik RadGrid and displays the information about the current grid status. This item is intended for use when Telerik RadGrid is in AJAX mode and it will indicate when Telerik RadGrid is performing AJAX requests.
In order to show the status bar item you need to set ShowStatusBar property to true.

You can control the messages that this item will display using the RadGrid.StatusBarSettings properties:
|
Copy Code |
|
<StatusBarSettings ReadyText="Stand by" LoadingText="Working..." /> |
The ReadyText property sets the text that will be displayed when Telerik RadGrid is not performing an AJAX request.
The LoadingText property sets the text that will be displayed when Telerik RadGrid is performing an AJAX request.
 |
Note that you should have a data source assigned in order to have Telerik RadGrid with status bar! |
Customizing GridStatusbarItem
In order to customize GridStatusBarItem one has to actually customize the label inside. The steps to follow are simple: wire ItemDataBound event, find the label and set its properties:
| C# |
Copy Code |
|
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) { if (e.Item is GridStatusBarItem) { GridStatusBarItem item = e.Item as GridStatusBarItem; Label lb = item.FindControl("StatusLabel") as Label; // Set label properties here } } |
| VB.NET |
Copy Code |
|
Protected Sub RadGrid1_ItemCreated(sender As Object, e As GridItemEventArgs) If TypeOf e.Item Is GridStatusBarItem Then Dim item As GridStatusBarItem = e.Item Dim lb As Label = item.FindControl("StatusLabel") End If End Sub |