close button event

2 posts, 0 answers
  1. VIEL
    VIEL avatar
    2 posts
    Member since:
    Feb 2012

    Posted 10 May 2012 Link to this post

    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 !
  2. Stefan
    Stefan avatar
    2891 posts

    Posted 15 May 2012 Link to this post

    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,
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. DevCraft R3 2016 release webinar banner
Back to Top