This is a migrated thread and some comments may be shown as answers.
Anchor not work as expected...
6 Answers 108 Views
This is a migrated thread and some comments may be shown as answers.
Ahmet Hoso
Top achievements
Rank 1
Ahmet Hoso asked on 24 Mar 2009, 08:40 AM
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

6 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 24 Mar 2009, 05:58 PM
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.
0
alberto bobbo
Top achievements
Rank 1
answered on 22 Jan 2010, 10:00 AM
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
0
alberto bobbo
Top achievements
Rank 1
answered on 22 Jan 2010, 10:05 AM
Radtextbox and radbutton are side by side.

Regard

Marco Bolzoni
Elitecgroup
0
Nikolay
Telerik team
answered on 27 Jan 2010, 03:07 PM
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.
0
Wojciech
Top achievements
Rank 2
answered on 16 Jul 2010, 09:58 AM
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
0
Stefan
Telerik team
answered on 22 Jul 2010, 07:50 AM
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
Tags
Dock
Asked by
Ahmet Hoso
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
alberto bobbo
Top achievements
Rank 1
Nikolay
Telerik team
Wojciech
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or