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

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

1 Answer 113 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 30 Aug 2013, 08:51 PM
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).

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 04 Sep 2013, 02:09 PM
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 >>
Tags
PageView
Asked by
Philip
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or