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

Custom Appointment Edit Locked Controls

5 Answers 155 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 20 Aug 2009, 05:20 PM
I have a custom Appointment Edit Dialog working but can not move the Buttons (OK, Cancel... etc) because they are locked in the parent dialog.

Is there a way to unlock these buttons so they can be moved?

THe idea is when you resized the Custom Dialog, inherited, you need to move the buttons further down the layout.

5 Answers, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 24 Aug 2009, 01:03 PM
Hello Phil,

The buttons in the appointment edit dialog have their anchor property set to bottom left so you do not have to move them if you resize the dialog. However, you can do this using the Controls collection of the dialog and the name of the buttons in your custom dialog:

this.Controls["btnOK"].Location = new Point(10, 10); 

I hope this helps. Do not hesitate to write again if you have more questions.

Best wishes,
Jordan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Lau Kok Yoon
Top achievements
Rank 1
answered on 05 Apr 2010, 06:12 PM
I using RadForm Q1 2010. I have some custom controls in the appointment dialog box that I need to make the dialog size bigger. I try change the location of the buttons with below statement, but it not working. Now my dialog have a lot empty space at the bottom (after those buttons).  I try change the Anchor property, but nothing help.

this.Controls["btnOK"].Location = new Point(12, 500);




0
Dobry Zranchev
Telerik team
answered on 07 Apr 2010, 09:48 AM
Hello Lau Kok Yoon,

Thank you for writing.

Could you provide us with a screenshot in order to see how your custom dialog looks like? At the moment I am not able to understand what your idea is. Meanwhile you could create a custom form and implement IEditAppointmentDialog. But then you should create all controls in it.

 
Best wishes,
Dobry Zranchev
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.
0
Lau Kok Yoon
Top achievements
Rank 1
answered on 08 Apr 2010, 07:09 AM
Hi Dobry,

Attached is the screen shot of the Custom Appointment Dialog. There is a lot blank spaces at bottom of the dialog. I try resize  the dialog from the Visual Studio(make it smaller), but all buttons will auto re-arrange and overlay to other text box on top of them.

I try change the location of each button by below command, but not successfull.

this
.Controls["btnOK"].Location = new Point(10, 10);
0
Boyko Markov
Telerik team
answered on 12 Apr 2010, 02:28 PM
Hello Lau Kok Yoon,

I would suggest trying the MinimumSize and MaximumSize properties which will restrict the dialog's size.
You can also use the dialog's Size property which will explicitly change its size in the MinimumSize - MaximumSize range.

I hope this helps.

Kind regards,
Boyko Markov
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
Scheduler and Reminder
Asked by
Phil
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Lau Kok Yoon
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Boyko Markov
Telerik team
Share this question
or