Unplanned
Last Updated: 17 Apr 2024 14:31 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 3
Category: PageView
Type: Bug Report
4
To reproduce: please refer to the attached sample project and gif file. The purpose is to select the last added page. However, the multi-line tabs are not ordered correctly at all compared to the TabControl.
Unplanned
Last Updated: 28 Oct 2019 09:40 by ADMIN

When you have RadPageView within a RadDock only the selected page is visible and its content is shown. When you select another page it is blank.

Workaround:

For Each page As RadPageViewPage In Me.rpvMain.Pages
    If Not page.Visible Then
        page.Visible = True
        page.Visible = False
    End If
Next
Unplanned
Last Updated: 27 Sep 2019 10:19 by ADMIN
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();
Unplanned
Last Updated: 20 Dec 2017 09:30 by ADMIN
Workaround: this.radPageViewPage1.Item.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
Unplanned
Last Updated: 21 Nov 2016 13:01 by ADMIN
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();
    }
}
Unplanned
Last Updated: 07 Apr 2016 13:55 by ADMIN
Under specific circumstances and in Windows 2008 Server environment the RadTabStrip internally used in RadDock does not get a proper size.

Workaround:
bool performLayout = false;
  
protected override void OnSizeChanged(EventArgs e)
{
    base.OnSizeChanged(e);
  
    if (this.WindowState == FormWindowState.Minimized)
    {
        this.performLayout = true;
    }
  
    else if (this.performLayout)
    {
        //reset padding to force bounds update
        this.Padding = new Padding(1);
        this.Padding = Padding.Empty;
        this.performLayout = false;
    }
}

Basically, you need to override the OnSizeChanged method of the main form and first set and then reset its Padding when the it goes from Minimized to another state. This will trigger that internal layout mechanisms of our controls and you will get the RadGridView shown as expected.
Unplanned
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);
}
Unplanned
Last Updated: 30 Mar 2016 09:38 by ADMIN
Workaround:
            RadPageViewExplorerBarElement exElement = radPageView2.ViewElement as RadPageViewExplorerBarElement;
            exElement.ItemSize = new Size(200, 100);
            
Unplanned
Last Updated: 30 Mar 2016 09:38 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
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();
    }
}
Unplanned
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.


Unplanned
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;
Unplanned
Last Updated: 30 Mar 2016 09:35 by ADMIN