Declined
Last Updated: 20 Oct 2014 14:45 by ADMIN
ADMIN
Created by: Jack
Comments: 0
Category:
Type: Bug Report
1
1. Add RadPanel on to design time surface
2. Set its AutoScroll property to true
3. Add button which is partially visible
4. Try to scroll using the scrollbar

Resolution: 
You need to use RadScrollablePanel instead RadPanel. You can refer to link http://feedback.telerik.com/Project/154/Feedback/Details/109764-add-scrolling-behavior-for-radscrollablepanel-at-design-time
Completed
Last Updated: 19 Jul 2016 12:02 by ADMIN
Approved
Last Updated: 30 Mar 2016 14:32 by ADMIN
To reproduce:

Add a RadLabel with text, set its background to red, its border to Yellow and start the project. You will notice that there is one pixel outside the border.

Workaround:

Set the Borderthickness of the LabelElement to 0: 

label2.LabelElement.BorderThickness = new Padding(0);
Completed
Last Updated: 31 Mar 2014 09:03 by Tim
When I have a control in the RadCollapsiblePanel(RCP) and copy and paste it into the same RCP, it give the control the exact same name. Then I have two conrols on my form with the same name which causes issues. Someone should look into this. I tried to repeat it in two different solution and could do it. 
Declined
Last Updated: 05 Feb 2019 16:46 by Fabrice

Hi,

We have an issue when using RightToLeft property of the RadCollapsiblePanel Control.

When the HeaderText ends with non-alphanumeric characters, on display, these characters are moved to the beginning of the title (possibly with a replacement of the closing characters in opening characters - such as the parenthesis).

I've attached a little sample of the issue.

Thanks for your help.

 

Regards

 

Fabrice MABIT

fmabit@proginov.com

Approved
Last Updated: 25 Jun 2018 13:48 by ADMIN
My current theme is windows10.
In two images I demonstrate the problem.
Approved
Last Updated: 11 Sep 2018 11:49 by ADMIN
Declined
Last Updated: 23 Oct 2018 10:21 by ADMIN
To reproduce:
1. Add a RadCollapsiblePanel and change the back color or border of the container via the Edit UI elements dialog.
2. Save the changes and run the project. You will notice that the style is reset and the changes are not preserved. 

Workaround: Customize the style at runtime. The following help article gives you information about the internal elements structure of the RadCollapsiblePanel: https://docs.telerik.com/devtools/winforms/panels-and-labels/collapsiblepanel/structure 
Completed
Last Updated: 16 May 2019 08:54 by ADMIN
Release R1 2019
The fix in 3Q18 removed the exposed Text property of the RadPanel control.  Setting the text to blank should not have removed the Text property from the control. 
Approved
Last Updated: 31 Jan 2018 07:02 by ADMIN
The issue reproduces if the panels are collapsed before auto hiding the windows. When the window is later displayed the collapsed panels cannot be expanded. Check the attached video: 

Workaround:
Cache the old bounds.
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        
        this.radDock1.AutoHideWindowDisplaying += RadDock1_AutoHideWindowDisplaying;
        this.radDock1.AutoHideWindowDisplayed += RadDock1_AutoHideWindowDisplayed;
        this.radCollapsiblePanel1.PanelContainer.BackColor = Color.LightGreen;
    }

    Rectangle cache;
    private void RadDock1_AutoHideWindowDisplayed(object sender, DockWindowEventArgs e)
    {
        this.radCollapsiblePanel1.OwnerBoundsCache = this.cache;
    }

    private void RadDock1_AutoHideWindowDisplaying(object sender, Telerik.WinControls.UI.Docking.AutoHideWindowDisplayingEventArgs e)
    {
        this.cache = this.radCollapsiblePanel1.OwnerBoundsCache;
    }
}
Completed
Last Updated: 07 May 2014 11:32 by ADMIN
Use the following code:
this.radLabel1.Font = new Font("Segoe UI", 11);
this.radLabel1.Text = "<html> Sample <strong> strong </strong> text to render. <br/> Please <u><strong>underline this here</strong></u> and make it strong.";

The underlined text is not aligned correctly. If you change the font size to 14, then the empty spaces between the words in the underlined text are replaced with "_" and they are visible.

Workaround: set the TextWrap property to false
Completed
Last Updated: 09 May 2014 12:09 by ADMIN
To reproduce:

Use Nikolay's project from this post: http://www.telerik.com/forums/scrolling-using-wraplayoutpanel . Run it and click just below the scrollbar  thumb, it will now move to the bottom. Now click above it and it will move to the top. At some cases (every second click or so) you will notice that the thumb is moving but the controls inside do not.

Workaround:

Subscribe to the ValueChanged event of the scrollbar and invoke PerformLayout of the PanelContainer:

this.radScrollablePanel1.VerticalScrollbar.ValueChanged += VerticalScrollbar_ValueChanged;

void VerticalScrollbar_ValueChanged(object sender, EventArgs e)
{
    this.radScrollablePanel1.PanelContainer.PerformLayout();
}

Completed
Last Updated: 18 Jun 2014 09:53 by Sergey
To reproduce:

Add a RadCollapsiblePanel to a form and set its IsExpanded property using the property grid at design time. Start the application and you will notice that the inner container is hiding the header and makes it unusable.

Workaround:

Use the following class, by passing it all your forms which have a RadCollapsiblePanel it will hide the inner container when each loads:



public class RadCollapsiblePanelIsExpandedFixer
{
    private Dictionary<Form, List<RadCollapsiblePanel>> panels = new Dictionary<Form, List<RadCollapsiblePanel>>();


    public RadCollapsiblePanelIsExpandedFixer(params Form[] forms)
    {
        foreach (Form form in forms)
        {
            foreach (Control control in form.Controls)
            {
                RadCollapsiblePanel panel = control as RadCollapsiblePanel;
                if (panel != null)
                {
                    if (!panels.ContainsKey(form))
                    {
                        panels[form] = new List<RadCollapsiblePanel>();
                    }


                    panels[form].Add(panel);
                    form.Load += form_Load;
                }
            }
        }
    }


    void form_Load(object sender, EventArgs e)
    {
        Form loadedForm = sender as Form;
        foreach (RadCollapsiblePanel panel in panels[loadedForm])
        {
            panel.ControlsContainer.Size = Size.Empty;
        }


        loadedForm.Load -= form_Load;
        panels.Remove(loadedForm);
    }
}

Completed
Last Updated: 13 Jun 2014 16:20 by ADMIN
To reproduce:

Add a RadCollapsiblePanel to a form and add a RadCheckBox inside. Set its Anchor property to be Top and Right. Collapse the RadCollapsiblePanel and expand it. You will see that the checkbox will either move, most of the times out of the visible part of the panel.



Workaround:

Use the following custom classes:

class MyCollapsiblePanel : RadCollapsiblePanel
{
    protected override RadCollapsiblePanelElement CreateCollapsiblePanelElement()
    {
        return new MyCollapsiblePanelElement(this);
    }


    public override string ThemeClassName
    {
        get
        {
            return typeof(RadCollapsiblePanel).FullName;
        }
        set
        {
        }
    }
}


class MyCollapsiblePanelElement : RadCollapsiblePanelElement
{
    public MyCollapsiblePanelElement(RadCollapsiblePanel ownerControl)
        : base(ownerControl)
    {
    }


    protected override void ExecuteCollapseFinalizations()
    {
        base.ExecuteCollapseFinalizations();


        if (this.AnimationType == CollapsiblePanelAnimationType.Reveal)
        {
            RadCollapsiblePanel panel = this.ElementTree.Control as RadCollapsiblePanel;


            foreach (Control control in panel.PanelContainer.Controls)
            {
                control.ResumeLayout(false);
            }
        }
    }


    protected override void ExecuteCollapsePreparations()
    {
        base.ExecuteCollapsePreparations();


        if (this.AnimationType == CollapsiblePanelAnimationType.Reveal)
        {
            RadCollapsiblePanel panel = this.ElementTree.Control as RadCollapsiblePanel;
            panel.ControlsContainer.ResumeChildControlsLayout();


            foreach (Control control in panel.PanelContainer.Controls)
            {
                control.SuspendLayout();
            }
        }
    }


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



Completed
Last Updated: 25 Sep 2014 08:03 by ADMIN
To reproduce:
public Form1()
{
    InitializeComponent();
    radCollapsiblePanel1.ExpandDirection = Telerik.WinControls.UI.RadDirection.Right;
    radCollapsiblePanel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
}


Workaround:
public class CustomCollapsiblePanel : RadCollapsiblePanel
{
    protected override RadCollapsiblePanelElement CreateCollapsiblePanelElement()
    {
        return new CustomCollapsiblePanelElement(this);
    }

    public override string ThemeClassName  
    { 
        get 
        { 
            return typeof(RadCollapsiblePanel).FullName;  
        }
    }
}

public class CustomCollapsiblePanelElement : RadCollapsiblePanelElement
{
    bool rtl = false;

    public CustomCollapsiblePanelElement(RadCollapsiblePanel ownerControl) : base(ownerControl)
    {
    }

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

    protected override void OnHeaderButtonClick(object sender, EventArgs e)
    {
        rtl = this.RightToLeft;
        this.RightToLeft = false;
        base.OnHeaderButtonClick(sender, e);
    }

    protected override void OnMouseUp(MouseEventArgs e)
    {
        this.RightToLeft = rtl;
        base.OnMouseUp(e);
    }
}
Approved
Last Updated: 30 Mar 2016 14:32 by ADMIN
To reproduce:

Add a RadLabel to a Form. Set the Margin and TextAlignment properties as well as some text:

this.radLabel1.AutoSize = true;

this.radLabel1.LabelElement.LabelText.Margin = new System.Windows.Forms.Padding(10, 10, 10, 10);
this.radLabel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
this.radLabel1.Text = "This text should appear middle-center";

You will see that the text is not aligned at the center of the label.

Workaround:

Set the Margin to the layout panel instead:

this.radLabel1.LabelElement.Children[2].Margin = new Padding(10);

Or from the ElementEditor -> LabelElement -> ImageAndTextLayoutPanel
Completed
Last Updated: 19 Aug 2014 13:40 by ADMIN
To reproduce :

this.radCollapsiblePanel1.IsExpanded = false;
for (int i = 0; i < 5; i++)
{
    RadButton btn = new RadButton();
    btn.Text = "Left" + i;
    btn.Location = new Point(10, 45 * i);
    this.radCollapsiblePanel1.Controls.Add(btn);

    RadButton btn2 = new RadButton();
    btn2.Text = "Right" + i;
    btn2.Location = new Point(140, 45 * i);
    this.radCollapsiblePanel1.Controls.Add(btn2);
}

Workaround:
this.radCollapsiblePanel1.IsExpanded = false; 
this.radCollapsiblePanel1.ControlsContainer.AutoScroll = true;
Completed
Last Updated: 26 Sep 2014 05:31 by ADMIN
To reproduce: 
Design time steps:
1. Add a UserControl with size bigger than the Form.
2. Add a RadCollapsiblePanel to the UserControl and set its IsExpanded property to false.
3. Position the RadCollapsiblePanel to the right most place of the UserControl. Thus, when you drag and drop the UserControl onto the form, the  RadCollapsiblePanel is not visible.

Run time steps:
4. Run the application and resize the form so you can see the RadCollapsiblePanel.
5. Click the arrow to expand the panel. As a result its location is changed.

Workaround: set the IsExpanded property to false at run time.
Completed
Last Updated: 10 Oct 2014 13:03 by ADMIN
To reproduce: add a RadCollapsiblePanel and a RadListView inside it. Make the RadListView  considerably smaller than the panel and place it at the center of the container. Set the ContentSizingMode property to CollapsiblePanelContentSizingMode.FitToContentWidth | CollapsiblePanelContentSizingMode.FitToContentHeight. When you run the application, you will see that the RadCollapsiblePanel does not have the same size as the RadListView. It is sized only from the right and down corners, although there are undesired margins as well. 
Completed
Last Updated: 27 Mar 2014 16:38 by ADMIN
To reproduce:

Add a RadCollapsiblePanel to a form. Add a button somewhere to the form. Continue working at design time. Copy the button, click the inner panel inside RadCollapsiblePanel and paste the button inside. Try to perform another paste or copy the pasted button, you will see errors.

Workaround:

Prior pasting click the header of RadCollapsiblePanel, this will select the whole control and perform the paste operation successfully.