Approved
Last Updated: 30 Mar 2016 09:38 by ADMIN
To reproduce:
- Add PageView to a form and set its Dock property to fill.
- Add single page and set its AutoScroll property to true.
- Add some controls and make sure that a scrollbar will appear.
- Start the application and scroll to the bottom.
- Maximize the form. You will notice that the scrollbar position is wrong.

 Workaround:
protected override void WndProc(ref Message m)
{
    if (m.Msg == 0x0112) 
    {
        if (m.WParam == new IntPtr(0xF030)) 
        {           
            this.radPageView1.SelectedPage.AutoScrollPosition = this.radPageView1.AutoScrollPosition;
        }
    }
    base.WndProc(ref m);
}
Approved
Last Updated: 30 Mar 2016 09:38 by ADMIN
Workaround:
            RadPageViewExplorerBarElement exElement = radPageView2.ViewElement as RadPageViewExplorerBarElement;
            exElement.ItemSize = new Size(200, 100);
            
Approved
Last Updated: 30 Mar 2016 09:38 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: PageView
Type: Bug Report
0
To reproduce: 
1.Add a RadPageView with several pages. 
2.Set the ViewElement.AllowEdit property to true.
3.Use the following code:

public Form1()
{
    InitializeComponent();

    radPageView1.ViewElement.AllowEdit = true;
    radPageView1.ViewElement.EditorInitialized += ViewElement_EditorInitialized;
}

private void ViewElement_EditorInitialized(object sender, RadPageViewEditorEventArgs e)
{
    radPageView1.ViewElement.ActiveEditor.Validating -= ActiveEditor_Validating;
    radPageView1.ViewElement.ActiveEditor.Validating += ActiveEditor_Validating;

    radPageView1.ViewElement.ActiveEditor.Validated -= ActiveEditor_Validated;   
    radPageView1.ViewElement.ActiveEditor.Validated += ActiveEditor_Validated;    

    radPageView1.ViewElement.ActiveEditor.ValidationError -= ActiveEditor_ValidationError;
    radPageView1.ViewElement.ActiveEditor.ValidationError += ActiveEditor_ValidationError;
}


private void ActiveEditor_Validating(object sender, CancelEventArgs e)
{
    RadPageViewElement.PageViewItemTextEditor editor =
        sender as RadPageViewElement.PageViewItemTextEditor;
    
    if (editor != null && radPageView1.ViewElement.ActiveEditor.Value == string.Empty)
    {
        e.Cancel = true;
    }
}

private void ActiveEditor_ValidationError(object sender, ValidationErrorEventArgs e)
{
    RadMessageBox.Show("Page label can't be empty!", "Error", MessageBoxButtons.OK, RadMessageIcon.Error);
}

private void ActiveEditor_Validated(object sender, EventArgs e)
{
    RadMessageBox.Show("Page label has been successfully updated!", "Information", MessageBoxButtons.OK, RadMessageIcon.Info);
}


If you change a tab title and do not press Enter, but click outside the pageview, the respective events for validation are not fired.

Workaround:
private void ViewElement_EditorInitialized(object sender, RadPageViewEditorEventArgs e)
{
    RadPageViewElement.PageViewItemTextEditor textEditor = e.ActiveEditor as RadPageViewElement.PageViewItemTextEditor;
    RadPageViewElement.PageViewItemTextEditorElement element = textEditor.EditorElement as RadPageViewElement.PageViewItemTextEditorElement;
   element.PropertyChanged += element_PropertyChanged;
}

private void element_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
    RadPageViewElement.PageViewItemTextEditorElement element = sender as RadPageViewElement.PageViewItemTextEditorElement;
    if (e.PropertyName == "ContainsFocus"&& !element.ContainsFocus)
    {
        radPageView1.ViewElement.ActiveEditor.Validate();
    }
}
Approved
Last Updated: 30 Mar 2016 09:37 by ADMIN
To reproduce:
- Add RadPageView with a two pages to a blank form, each page should contain a RadGridView.
- Populate the gids with some data.
- Start a gotomeeting and show your screen.
- Launch the application or start debugging.
- Add a column to the first tab page (not sure if the location or placement matters)
- Click the tab header for the second tab page to try to navigate to it
-  Nothing will happen.

Workaround:
- Change focus to another application.
-  The test app will now update.


Approved
Last Updated: 30 Mar 2016 09:35 by Jesse Dyck
It appears that when the contents of the RadPageViewPage is changed its height stays the same. fig1 shows the height before content is modified fig2 shows the height after content is modified(pressing ‘Next’ button), fig3 shows the height after one of the RadPageViewPage tabs is clicked, clicking 'Next' after that keeps the same height. It appears that if a tab is clicked the RadPageView resizes itself. So how can I make the RadPageView resize itself to its content programmatically.

Workaround: increase and decrease the Width of RadPageView to force the layout.
                rpv.Width += 1;
                rpv.Width -= 1;
Approved
Last Updated: 30 Mar 2016 09:35 by ADMIN
Completed
Last Updated: 10 Sep 2015 09:39 by ADMIN
Hello,
PageView with Windows8 Theme, ViewMode Stack, Stack Position Left
Tabs are drawn incorrectly, see attachment.
can i work around this issue?
Thanks
Declined
Last Updated: 24 Jun 2015 12:19 by ADMIN
To reproduce:
- Implement the example from this page http://www.telerik.com/help/winforms/pageview-how-to-editing-page-tabs.html.
- Set the page text to empty string and click on another page.


Workaround:
subscribe to the editor's element RadPropertyChanging event:
void element_RadPropertyChanging(object sender, RadPropertyChangingEventArgs args)
{
    if (args.Property == RadElement.ContainsFocusProperty)
    {
        if (!(bool)args.NewValue)
        {
            args.Cancel = true;
        }
    }
}
Completed
Last Updated: 22 May 2015 10:54 by ADMIN
1. Place a RadPageView in ExplorerBar view mode on a from.
2. Add page and place any RadControl in the page content panel.
3. Close (Collapse) the page.
4. Save and close the form.
5. Open the form and open(expand) the page and you will see that the control will be stretched more than when you saved the form.
Completed
Last Updated: 11 May 2015 10:27 by ADMIN
To reproduce:
- Add RadPageView change the view  to ExplorerBar and add some pages with controls.
- Start the application expand all pages and scroll.

Workaround:
class MyPageView : RadPageView
{
    protected override RadPageViewElement CreateUI()
    {
        if (this.ViewMode == PageViewMode.ExplorerBar)
        {
            return new MyExplorerBarElement();
        }
        return base.CreateUI();
    }
   
}

class MyExplorerBarElement : RadPageViewExplorerBarElement
{
    protected override bool IsChildElementExternal(Telerik.WinControls.RadElement element)
    {
        return !(element is RadPageViewElementBase) && base.IsChildElementExternal(element);
    }
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(RadPageViewExplorerBarElement);
        }
    }
}
Declined
Last Updated: 04 Feb 2015 12:03 by ADMIN
To reproduce:
- Add RadpageView to a form and build the application.
- Merge the assemblies with .NET Reactor
- Run the new exe file.
Completed
Last Updated: 08 Dec 2014 12:25 by ADMIN
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.
Completed
Last Updated: 14 Nov 2014 13:07 by ADMIN
Steps to reproduce:

1. Add a RadPageView to a form and add a page
2. Add some controls to the page.
3. Open the RadPageView smart tag and click Remove Page
4. Select from Visual Studio Edit->Undo and you will see that the page will be restored but the controls on it will not be restored properly.
If one removes the page using the keyboard Delete key the undo functionality of VS works correctly.
Completed
Last Updated: 20 Oct 2014 14:18 by ADMIN
Workaround:
public Form1()
{
    InitializeComponent();
    this.radPageView1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
}

public class CustomPageView : RadPageView
{
    public override string ThemeClassName  
    { 
        get 
        { 
            return typeof(RadPageView).FullName;  
        }
    }

    protected override RadPageViewElement CreateUI()
    {
        switch (this.ViewMode)
        {
            case PageViewMode.Strip:
                return new CustomRadPageViewStripElement();
            
            default:
                return base.CreateUI();
        }
    }
}

public class CustomRadPageViewStripElement : RadPageViewStripElement 
{
    public CustomRadPageViewStripElement()
    {
    }

    protected override Type ThemeEffectiveType     
    { 
        get    
        { 
            return typeof(RadPageViewStripElement);     
        }
    }

    protected override bool IsNextKey(Keys key)
    {
        if (this.RightToLeft)
        {
            if (key == Keys.Left)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

        return base.IsNextKey(key);
    }

    protected override bool IsPreviousKey(Keys key)
    {
        if (this.RightToLeft)
        {
            if (key == Keys.Right)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        return base.IsPreviousKey(key);
    }
}
Completed
Last Updated: 20 Oct 2014 12:18 by ADMIN
The common for the other RadPageView modes approach for creating custom items does not work for ExplorerBar mode.
Completed
Last Updated: 17 Oct 2014 10:15 by ADMIN
When you dynamically remove a page from RadPageView when it is in ExplorerBarView, its header remains on your form.
Completed
Last Updated: 07 Oct 2014 10:40 by ADMIN
To reproduce:

Create a RadPageView and add these items:

RadPageView pageView = new RadPageView
{
    Parent = this,
    Dock = DockStyle.Fill,
    ViewMode = PageViewMode.Outlook
};

pageView.Pages.Add(new RadPageViewPage("Machines"));
pageView.Pages.Add(new RadPageViewPage("Users"));
pageView.Pages.Add(new RadPageViewPage("Software"));
pageView.Pages.Add(new RadPageViewPage("Queries"));
pageView.Pages.Add(new RadPageViewPage("Reports"));
pageView.Pages.Add(new RadPageViewPage("License Manager Servers"));

You will see that the Users and Reports items will be auto ellipsed.

Workaround:

Change the font of the item. Changing the style should be enough:

foreach (RadPageViewItem item in (pageView.ViewElement as RadPageViewOutlookElement).Items)
{
    item.AutoEllipsis = false;
}
Completed
Last Updated: 09 Sep 2014 12:06 by ADMIN
Steps to reproduce:
1. Drag a page view to a form and add two pages to it.
2. Add a button on the first page.
3. Drag a button to the form and in its Click event handler add code to change the selected page of the page view to the second one.
4. Add an event handler for the Enter event of the button on the first page.
Run the project and when you click the button to change the page you will see that the button on the first page gets the focus.
Completed
Last Updated: 28 Jul 2014 11:43 by ADMIN
1. Add RadPageView to a form
2. In the code behind, after InitializeComponent set the ViewMode to ExplorerBar
3. Subscribe to the ItemCreating event of the control
4. Create three RadPageViewPages and add them to the control
5. Run the application