Custom Appointment Edit Locked Controls

6 posts, 0 answers
  1. Phil
    Phil avatar
    9 posts
    Member since:
    Sep 2012

    Posted 20 Aug 2009 Link to this post

    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.
  2. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 24 Aug 2009 Link to this post

    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.
  3. Lau Kok Yoon
    Lau Kok Yoon avatar
    2 posts
    Member since:
    Apr 2009

    Posted 05 Apr 2010 Link to this post

    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);




  4. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    353 posts

    Posted 07 Apr 2010 Link to this post

    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.
  5. Lau Kok Yoon
    Lau Kok Yoon avatar
    2 posts
    Member since:
    Apr 2009

    Posted 08 Apr 2010 Link to this post

    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);
  6. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 12 Apr 2010 Link to this post

    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.
Back to Top