override appearance/functionality of each tab's remove ([X]) button

2 posts, 0 answers
  1. Philip
    Philip avatar
    7 posts
    Member since:
    Sep 2012

    Posted 30 Aug 2013 Link to this post

    I have a tab control and each tab's [x] button (far right of tab strip) behavior is to remove the tab page from the collection.
    1) how do I change the [x] to an icon; and,
    2) how do I override the event to provide my own functionality (example to delete the underlying object).
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 04 Sep 2013 Link to this post

    Hi Philip,

    Thank you for writing.

    I assume that you are using the control in StripMode. If so, here is how to access the strip element and from there the close button:
    RadPageViewStripElement stripelement = radPageView1.ViewElement as RadPageViewStripElement;
    stripelement.ItemContainer.ButtonsPanel.CloseButton.Image
    stripelement.ItemContainer.ButtonsPanel.CloseButton.Click

    I hope this helps.
     

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top