Approved
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.
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
1 2