# New Item

**RadPageView** supports a special kind of page item that prompts the end-user to create a new page at run time by clicking that item. Let's call the item *NewItem*. When the *NewItem* is clicked, a special event is fired where the developer can decide what exactly should be done - in the context of **RadPageView** usually a new **RadPageViewPage** is being created.

![WinForms RadPageView New Item Button](https://www.telerik.com/products/winforms/documentation/assets/3dc689846e04ac0920f0fb74d197286e/pageview-stripview-new-item001.png)

## Enabling the NewItem

You can easily show the *NewItem* by setting the **NewItemVisibility** property of the **RadPageViewStripElement**. This property is of the enum type **StripViewNewItemVisibility** and has the following possible values:

* **Hidden** (default value): The *NewItem* is hidden.

* **Front**: The *NewItem* appears in front of the other page items in the items strip area.

  ![WinForms RadPageView New Item Front](https://www.telerik.com/products/winforms/documentation/assets/7da117670d2097036a90be23df78bb97/pageview-stripview-new-item002.png)

* **End**: The *NewItem* appears at the end of the row of page items in the items strip area.

  ![WinForms RadPageView New Item End](https://www.telerik.com/products/winforms/documentation/assets/9df76bd3d7cda31e748f2c605b69e99f/pageview-stripview-new-item003.png)

Here is how to set the **NewItemVisibility** property:

```C#
RadPageViewStripElement stripElement = this.radPageView1.ViewElement as RadPageViewStripElement;
stripElement.NewItemVisibility = StripViewNewItemVisibility.End;
```

```VB.NET
Dim stripElement As RadPageViewStripElement = TryCast(Me.RadPageView1.ViewElement, RadPageViewStripElement)
stripElement.NewItemVisibility = StripViewNewItemVisibility.End
```

## Handling the Clicked NewItem

When the **NewItem** is clicked by the end-user, **RadPageView** throws an event called **NewPageRequested**.  There you can create a new **RadPageViewPage** instance and add it to **RadPageView**. In the following code snippet we create a new **RadPageViewPage**, add it to **RadPageView**, select the newly created page, and make sure that the page item is fully visible by calling the **EnsureItemVisible** method.

```C#
void radPageView1_NewPageRequested(object sender, EventArgs e)
{
    RadPageView pageView = sender as RadPageView;
    RadPageViewStripElement stripElement = pageView.ViewElement as RadPageViewStripElement;

    RadPageViewPage page = new RadPageViewPage();
    page.Text = "New Page";
    pageView.Pages.Add(page);

    pageView.SelectedPage = page;
    pageView.ViewElement.EnsureItemVisible(stripElement.NewItem);
}
```

```VB.NET
Private Sub radPageView1_NewPageRequested(ByVal sender As Object, ByVal e As EventArgs)
    Dim pageView As RadPageView = TryCast(sender, RadPageView)
    Dim stripElement As RadPageViewStripElement = TryCast(pageView.ViewElement, RadPageViewStripElement)

    Dim page As New RadPageViewPage()
    page.Text = "New Page"
    pageView.Pages.Add(page)

    pageView.SelectedPage = page
    pageView.ViewElement.EnsureItemVisible(stripElement.NewItem)
End Sub
```

The result is shown on the screenshot below:

![WinForms RadPageView NewPageRequested Event Handler](https://www.telerik.com/products/winforms/documentation/assets/791b15b0b10c19e8ee7425598b8bc469/pageview-stripview-new-item004.png)

## See Also

* [Fitting Items](https://www.telerik.com/products/winforms/documentation/controls/pageview/stripview/fitting-items)
* [Scrolling and Overflow (strip buttons)](https://www.telerik.com/products/winforms/documentation/controls/pageview/stripview/scrolling-and-overflow--strip-buttons-)
* [Strip Element Properties](https://www.telerik.com/products/winforms/documentation/controls/pageview/stripview/strip-element-properties)
