To reproduce: for (int i = 0; i < 20; i++) { this.radPageView1.Pages.Add(new RadPageViewPage("Page" + i)); } this.radPageView1.ViewMode = PageViewMode.Backstage; Only a few of the pages are visible and the user is not allowed to scroll to see the rest of them. Workaround: 1. Make use of the strip buttons: RadPageViewBackstageElement el = this.radPageView1.ViewElement as RadPageViewBackstageElement; el.ItemContainer.ButtonsPanel.Visibility = ElementVisibility.Visible; 2. Place the control in RadScrollablePanel RadScrollablePanel scrollablePanel = new RadScrollablePanel(); scrollablePanel.Dock = DockStyle.Fill; this.Controls.Add(scrollablePanel); RadPageView pageView = new RadPageView(); pageView.ViewMode = PageViewMode.Backstage; scrollablePanel.Controls.Add(pageView); for (int i = 0; i < 50; i++) { pageView.Pages.Add(new RadPageViewPage("Page " + i.ToString())); } pageView.Size = new System.Drawing.Size(1000,2500);
To reproduce: use the following code snippet: public RadForm1() { InitializeComponent(); this.radPageView1.Pages.Add(new RadPageViewPage("My page")); RadPageViewStripElement stripElement = this.radPageView1.ViewElement as RadPageViewStripElement; stripElement.StripButtons = StripViewButtons.ItemList; this.radPageView1.ItemListMenuDisplaying += radPageView1_ItemListMenuDisplaying; } private void radPageView1_ItemListMenuDisplaying(object sender, RadPageViewMenuDisplayingEventArgs e) { e.Items.Clear(); RadMenuItem item = new RadMenuItem("aaa"); e.Items.Add(item); } Click the overflow button to open the drop down and select the item. When you open the overflow popup again you will notice that the item is duplicated although you clear the items in the ItemListMenuDisplaying event. Workaround: dispose the item when it is clicked private void radPageView1_ItemListMenuDisplaying(object sender, RadPageViewMenuDisplayingEventArgs e) { e.Items.Clear(); RadMenuItem item = new RadMenuItem("aaa"); item.Click += item_Click; e.Items.Add(item); } private void item_Click(object sender, EventArgs e) { RadMenuItem item = sender as RadMenuItem; if (item != null) { item.Click -= item_Click; item.Dispose(); } }
Workaround: set text manually on ToolTipTextNeeded event. private void Form1_Load(object sender, EventArgs e) { this.radPageView1.ToolTipTextNeeded += new Telerik.WinControls.ToolTipTextNeededEventHandler(radPageView1_ToolTipTextNeeded); } void radPageView1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e) { RadPageViewStripItem item = sender as RadPageViewStripItem; if (item != null) { e.ToolTipText = item.Text; } }
How to reproduce: check the attached project: Workaround: when the form is opened in the designer make sure that all pages are made visible at least ones so the controls are initialized, before attempting to access collection editors via properties window
Steps to reproduce: 1. Set the main screen on 125-percent scale 2. Run attached sample application (1107416 RadPageView Issue.zip). 3. Click menu item "ShowPageView". After showing the page view in a DocumentWindow, the SelectedPageChanging/SelectedPageChanged events are fired twice. Workaround: Replace RadPageView with custom one: public class CustomPageView : RadPageView { protected override void ScaleControl(SizeF factor, BoundsSpecified specified) { this.SuspendEvents(); base.ScaleControl(factor, specified); this.ResumeEvents(); } }
To reproduce: please refer to the attached sample project and follow the illustarted steps in the attached gif file.
There should be a property at RadPanelBar which gets/sets the selected group.
When RadPageView is in the ExplorerBar view, it should order its pages' bars opposite to the order of the Stack view.
Workaround: this.radPageViewPage1.Item.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
To reproduce: please follow the steps illustrated in the attached gif file. Workaround: add pages as follows: Click the Smart Tag of RadPageView and then click the Add Page link five times. Additional information how to get started with RadPageView is available in the following help article: https://docs.telerik.com/devtools/winforms/pageview/stripview/getting-started
To reproduce: 1. Add a RadPageView with no pages and set its Dock property to Fill. 2. Set the ViewMode property to ExplorerBar at design time. 3. Use the following code snippet: private void AddOutputPage(int index) { string title = "Test-Page " + index; RadPageViewPage page = new RadPageViewPage(title); this.radPageView1.Pages.Add(page); } private void Form1_Load(object sender, EventArgs e) { for (int i = 0; i < 20; ++i) AddOutputPage(i); } As a result the current page header at the top of the RadPageView is not displayed until you resize the pageview.
To reproduce: - Open attached project and add a lot of pages. - Close all pages - The GDI object count increases. Workaround: GC.Collect(); GC.WaitForPendingFinalizers(); GC.WaitForFullGCApproach(); GC.WaitForFullGCComplete(); GC.Collect();
To reproduce: 1. Add RadPageView with several pages 2. Set the Text property of page to "Payers & Frequencies" this.radPageViewPage2.Text = "Payers & Frequencies"; RadPageViewStripElement strip = (RadPageViewStripElement)this.radPageView1.ViewElement; strip.StripButtons = StripViewButtons.All; 3. Run the project and open the ItemListMenu(available pages) and you will see that name of page is "Payers _Frequencies" Workaround: 1. Subscribe to ItemListMenuDisplaying event and set UseMnemonic property to false: void radPageView1_ItemListMenuDisplaying(object sender, RadPageViewMenuDisplayingEventArgs e) { foreach (RadMenuItem listMenuItem in e.Items) { TextPrimitive textPrimitive = listMenuItem.Layout.TextPanel.Children[0] as TextPrimitive; textPrimitive.UseMnemonic = false; } }
User should be able to define the position of the strip buttons. For example, the ItemList buttons should be situated on the left side of RadPageView while the scroll buttons should be on the right side.
A nice addition to RadPageView will the ability to scroll by pixel or by page.
A nice addition to the Pages collection of RadPageView will be the ability to get a page by its name.
Let's say that you have RadPageView in ExplorerBar mode and the Content Size mode is set to AutoSizeToBestFit. Dock two buttons in the content area to top. Run the app and you will see that the bottom of the second button is cut in some themes. This is because these themes has a border set to the content area. The border is taken into consideration by the layout and the content is cut even throught there is space for it. This happens with Windows7, Office2010Black and other themes.
Currently, when trying to replace the item, exception is thrown.