
Cantenot Frederic
Top achievements
Rank 1
Cantenot Frederic
asked on 15 Oct 2010, 09:32 AM
Hi,
I would like to add a close button on each page of my RadPageView like in this link http://www.telerik.com/products/winforms/pageview.aspx (see attached file).
I searched but I didn't find how to do it.
Could you help me please ?
Thanks.
regards.
Fred
I would like to add a close button on each page of my RadPageView like in this link http://www.telerik.com/products/winforms/pageview.aspx (see attached file).
I searched but I didn't find how to do it.
Could you help me please ?
Thanks.
regards.
Fred
5 Answers, 1 is accepted
0
Accepted

Emanuel Varga
Top achievements
Rank 1
answered on 15 Oct 2010, 10:42 AM
Hello Cantenot,
You can use this:
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
You can use this:
pageView.ViewElement.ShowItemCloseButton =
true
;
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
0

Cantenot Frederic
Top achievements
Rank 1
answered on 15 Oct 2010, 10:47 AM
Thanks. It was simple but I didn't find it.
Have a good day.
Regards.
Fred
Have a good day.
Regards.
Fred
0

Chris Kirkman
Top achievements
Rank 1
answered on 12 Dec 2017, 02:34 PM
I want to selectively show/hide the close button. I have 2 tabs (pages) that I never want the user to be able to close; however, there are tabs that will be added at runtime dynamically that I want the user to be able to close. How can I do this?
0
Hello, Chris,
Thank you for writing.
You can set the RadPageView.ViewElement.ShowItemCloseButton property to true. Thus, the close button will be shown on all pages. Then, just hide the buttons for the necessary tabs. Here is a sample code snippet demonstrating how to hide the close button:

I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Progress Telerik
Thank you for writing.
You can set the RadPageView.ViewElement.ShowItemCloseButton property to true. Thus, the close button will be shown on all pages. Then, just hide the buttons for the necessary tabs. Here is a sample code snippet demonstrating how to hide the close button:
this
.radPageView1.ViewElement.ShowItemCloseButton =
true
;
RadPageViewStripItem item =
this
.radPageViewPage2.Item
as
RadPageViewStripItem;
item.ButtonsPanel.CloseButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0

Chris Kirkman
Top achievements
Rank 1
answered on 13 Dec 2017, 05:33 PM
thanks. that does work.