Anchor not work as expected...

7 posts, 0 answers
  1. Ahmet Hoso
    Ahmet Hoso avatar
    14 posts
    Member since:
    Jul 2008

    Posted 24 Mar 2009 Link to this post

    Hi All,

    My Problem is anchor not working as expected in dockpane.

    I add a windows form, change the inheritance to the radform. Add a dockmanager and set dock = fill, and add a dockpane. Inside the dockpane add a textbox and set anchor property to top,left,right. And when i run the application, anchor not work properly.

    Regards

    Ahmet HOSO
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 24 Mar 2009 Link to this post

    Hi Ahmet Hoso,

    Thank you for reporting this issue - we have logged it and it will be fixed in the upcoming Q1 2009 SP1 release.

    We are sorry for the inconvenience caused. Your Telerik points have been updated.
     

    Regards,
    Julian Benkov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. alberto bobbo
    alberto bobbo avatar
    2 posts
    Member since:
    Nov 2009

    Posted 22 Jan 2010 Link to this post

    Hi All,

    I got a similar problem after installing the latest update.

    In a winform project with a windows form, change the inheritance to the radform.
    Add a RadGroupBox and set dock = fill, and add a dockpane. Inside the radgroupbox add a radtextbox and a radbutton.
    Set anchor property to top,left,right in radtextbox and set anchor property to top,right in radbutton.

    In VS2008 design, all ok but when i run the application, anchor not work properly.

    Regards

    Marco Bolzoni
    ElitecGroup
  5. alberto bobbo
    alberto bobbo avatar
    2 posts
    Member since:
    Nov 2009

    Posted 22 Jan 2010 Link to this post

    Radtextbox and radbutton are side by side.

    Regard

    Marco Bolzoni
    Elitecgroup
  6. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 27 Jan 2010 Link to this post

    Hello alberto bobbo,

    I tested the case according to your description, but I was not able to reproduce any issues. RadTextBox and RadButton controls were at the expected places at runtime.

    Maybe I did not understood your description correctly. In this case please open a new support ticket and send me a sample project which demonstrates the described behavior. This will allow me to provide you with further assistance.

    Kind regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Wojciech
    Wojciech avatar
    4 posts
    Member since:
    Oct 2008

    Posted 16 Jul 2010 Link to this post

    Hi There

    I have anchor problems too (VS2010, Q3 2009 and Q2 2010 Trial)

    What I have is:

    1st form
    Base form that inheriths from RadForm (BaseForm : Radform)
    I put RadGroupBox, dock it to bottom. Then I put 2 RadButtons, and put them in bottom right corner (see Step1 - BaseForm.jpg)
    Buttons Anchor is set to Botton, Right
    I change Modifiers to Protected (for RadGroupBox and for both RadButtons)

    2nd form
    This form inherits from Baseform (Form1 : BaseForm)
    RadGroupBox and  RadButtons appear on 2nd form. It's ok.

    But!
    I move buttons on 2nd form to left (see Step2 - form1.jpg) and save it.
    Now open again Form1 in design and somehow Buttons moved to right (see Step 3 - Form1.jpg)
    Save and close it. Open again... Buttons move more to right (see Step 4 - form1.jpg)

    I don't know what is wrong. Same thing on "classic" WinForms controls works fine. Nobody is moving.
    If you wan't, I have sample solution with whis problem.


    Maybe  RadButtons don't like my Form, and behind the scens they try to escape :)

    Regards
    Wojciech Poniatowski
  8. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 22 Jul 2010 Link to this post

    Hi Wojciech,

    Thank you for writing.

    I would like to inform you that the Anchoring functionality in our forms is inherited from Microsoft Windows Forms controls. There is a bug that comes with it and that is why you have such an issue. I have attached a video file, where you can see that same thing is happening with the Microsoft`s controls.

    However I would like to suggest you to simply set the Anchoring property for the Buttons in Form1 (which inherits from the BaseForm) to Bottom, Left. This solved it on my end,

    I hope you will find this information helpful. If you need any further assistance, do not hesitate to contact us.

     

    Sincerely yours,
    Stefan
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready