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

close button event

1 Answer 216 Views
PageView
This is a migrated thread and some comments may be shown as answers.
VIEL
Top achievements
Rank 1
VIEL asked on 10 May 2012, 11:34 AM
Hi,
I would like to know if there is a way to access to the close button click event so as i can close all pages in on click and not only one page.
If you have other solutions to do it, that would be great too !
thanks.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 May 2012, 08:38 AM
Hi Viel,

Thank you for writing.

I assume that you are using RadPageView in Strip ViewMode and you want to capture the click of the close button of each page. If so, here is how you can iterate over the pages and subscribe to the desired event:
foreach (RadPageViewPage page in radPageView1.Pages)
{
   page.Item.ButtonsPanel.CloseButton.Click += new EventHandler(CloseButton_Click);
}
....
  void CloseButton_Click(object sender, EventArgs e)
{
//do smth
}

I hope this helps.
 
All the best,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
PageView
Asked by
VIEL
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or