This is a migrated thread and some comments may be shown as answers.

Setting Anchor property to Right of RadTextbox, RadDropDownList results wrong behaviour

6 Answers 194 Views
Form
This is a migrated thread and some comments may be shown as answers.
oleg
Top achievements
Rank 1
oleg asked on 22 Sep 2014, 02:13 PM
Hello,

I upgraded the Telerik WinForms to 2014.2.715 version.
The upgrade results to all my forms containing the radtextboxes and raddropdownlists with Anchor property set to `Right` stops working properly.

1. The affected control (e.g. radtextbox) shall be placed on a UserControl control directly or on a panel.
2. Its anchor property must contain Right (eg Top+Right+Left)
3. The UserControl control must be placed on a Telerik RadForm.

After starting the app the radtextbox ignores the anchor=right and leaves the form's boundaries.

Resizing the UserControl in the designer works fine. Previous release (2013.3.1127) doesn't contain this problem. The problem appears after upgrading to 2014.2.715.

As I understand it is old bag reincornated :) The problem is the same as described here: http://stackoverflow.com/questions/9604605/user-control-keeps-stretching-once-dropped-on-form

6 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 23 Sep 2014, 06:22 AM
Hello Oleg,

Thank you for writing.

This is a known issue and it is logged in our Feedback Portal. The issue is already fixed and it should not occur in the latest version of the suite. For your reference the issue is logged in the following page.

In addition I was not able to reproduce the issue with the latest version. I have attached my test project. Could you please check it and let me know how it differs from your real setup? 

I am looking forward to your reply.

Regards,
Dimitar
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
oleg
Top achievements
Rank 1
answered on 23 Sep 2014, 09:09 AM
Hi,

I've reproduced the issue with your project attached. To reproduce it you need to make the UserControl1 greater than the Form1.
E.g. UserControl1.Size=(1151; 723), Form1.Size=(645; 669).
Then the textbox and dropdownbox will ignore the anchor and will leave the form's boundaries. You will see the same in a designer.

See screenshot attached.
0
oleg
Top achievements
Rank 1
answered on 23 Sep 2014, 09:19 AM
Moreover I noticed that the disabled color of the textbox and dropdownlist changed to gray with some non-zero padding in the new release.
In the previous release the disabled color matched the color of the form. It was better.
0
Dimitar
Telerik team
answered on 24 Sep 2014, 06:00 AM
Hello Oleg,

Thank you for writing back.

I was able to reproduce the anchor issue. I have updated the mentioned issue status and our developers will look at it as soon as possible. Meanwhile you can use the workaround from the issue page.

For the disabled state what you see is the default disabled state background color. This issue is already logged. You can track the item for status changes and add your vote for it here.

If you want to workaround this you should edit the theme. The attached image shows where you can find this element. In addition the following articles are quite useful when you need to edit the default themes:
Off topic, I would like to kindly ask you to separate the threads which are not related to each other in separate posts, in order to keep the forums clean and easy to navigate. 

Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Jorge
Top achievements
Rank 1
answered on 01 Jun 2015, 02:23 PM

Hello,

I have the same problem that Oleg, and I have the last version 2015.1.331.40. the RadTextBox not work Anchor Property (Top, Left, Right) after load form, do not   resize control when is opening the Form this.WindowState = FormWindowState.Maximized; 

Thank you

0
Dimitar
Telerik team
answered on 02 Jun 2015, 02:04 PM
Hi Jorge,

Thank you for contacting us.

I was able to reproduce the observed issue. I have logged it in our Feedback Portal. You can track the item for status changes and add your vote for it here.

To workaround this you should set the WindowState when the form is shown:
void RadForm1_Shown(object sender, EventArgs e)
{
    this.WindowState = FormWindowState.Maximized;
}

Your Telerik Points have been updated for this report.

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Form
Asked by
oleg
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
oleg
Top achievements
Rank 1
Jorge
Top achievements
Rank 1
Share this question
or