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

7 posts, 0 answers
  1. oleg
    oleg avatar
    4 posts
    Member since:
    Nov 2012

    Posted 22 Sep 2014 Link to this post

    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
  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 23 Sep 2014 Link to this post

    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.
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. oleg
    oleg avatar
    4 posts
    Member since:
    Nov 2012

    Posted 23 Sep 2014 in reply to Dimitar Link to this post

    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.
  5. oleg
    oleg avatar
    4 posts
    Member since:
    Nov 2012

    Posted 23 Sep 2014 Link to this post

    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.
  6. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 24 Sep 2014 Link to this post

    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.
     
  7. Jorge
    Jorge avatar
    1 posts
    Member since:
    Apr 2015

    Posted 01 Jun 2015 in reply to Dimitar Link to this post

    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

  8. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 02 Jun 2015 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready