Assembly: C1.Web.C1WebReport.2 (in C1.Web.C1WebReport.2.dll)
Syntax
C# |
---|
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)] [TypeConverterAttribute(typeof(ExpandableObjectConverter))] [PersistenceModeAttribute(PersistenceMode.InnerProperty)] public NavigationBar NavigationBar { get; } |
Visual Basic (Declaration) |
---|
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)> _ <TypeConverterAttribute(GetType(ExpandableObjectConverter))> _ <PersistenceModeAttribute(PersistenceMode.InnerProperty)> _ Public ReadOnly Property NavigationBar As NavigationBar Get |
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:
_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 |
_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; |