Gets a reference to the NavigationBar object that controls the appearance of the built-in navigation bar.

Namespace:  C1.Web.C1WebReport
Assembly:  C1.Web.C1WebReport.2 (in C1.Web.C1WebReport.2.dll)

Syntax

Remarks

The built-in navigation bar is useful when you are rendering paged reports (see the Paged property) and you don't want to write a custom navigation bar to allow user to page through the report. The built-in navigation bar is easy to use and customizable. You can set the text displayed in the bar and the Style used to render it.

If the customization provided by the built-in navigation bar is not enough to suit your needs, you can set the Visible property to false and write your own custom navigation bar. The "CustomNavBar" sample, provided with the control, shows how to do that.

Examples

In most cases, you will set up the NavigationBar at design time, using the standard Style editor. However, you can also set it programmatically, as in the following example:

Copy CodeVisual Basic
_c1wr.Paged = True
_c1wr.NavigationBar.Visible = True
_c1wr.NavigationBar.Text = "Page <b>{0}</b> of {1}"
_c1wr.NavigationBar.Style.BackColor = Color.Black
_c1wr.NavigationBar.Style.ForeColor = _c1wr.BackColor
Copy CodeC#
_c1wr.Paged = true;
_c1wr.NavigationBar.Visible = true;
_c1wr.NavigationBar.Text = "Page <b>{0}</b> of {1}";
_c1wr.NavigationBar.Style.BackColor = Color.Black;
_c1wr.NavigationBar.Style.ForeColor = _c1wr.BackColor;

See Also