Open Recurring Item Dialog Formatting

6 posts, 0 answers
  1. Jeremy Murtishaw
    Jeremy Murtishaw avatar
    86 posts
    Member since:
    Apr 2009

    Posted 25 Apr 2010 Link to this post

    Hello,

    The Open Recurring Item Dialog for the Rad Scheduler is commonly too small for the text that it needs to display [the text gets truncated]. I'd also like to change the background color. Can you point me at some information so that I can achieve both of these things?

    Thanks!
    Jeremy
    Jeremy
  2. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 26 Apr 2010 Link to this post

    Hello Jeremy Murtishaw,

    Thank you for writing. Unfortunately, this is not possible at the moment, but we are planning to implement it for next official release.

    All the best,
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Chris
    Chris avatar
    6 posts
    Member since:
    Dec 2010

    Posted 12 Jul 2011 Link to this post

    Hi,

    I would also like to vote for this improvement.  Additionally, when the "Open Recurring Item" dialog opens up it is never showing the name of the event to be opened.  It is just showing the following: 
    "" is a recurring appointment. ...

    Thanks.
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 15 Jul 2011 Link to this post

    Hello Chris,

    It is already possible to modify or replace the "Open Recurring Item" dialog. The following code sample demonstrates how you can achieve this:
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
             
            this.radScheduler1.AppointmentEditDialogShowing += new EventHandler<AppointmentEditDialogShowingEventArgs>(radScheduler1_AppointmentEditDialogShowing);
        }
     
        void radScheduler1_AppointmentEditDialogShowing(object sender, AppointmentEditDialogShowingEventArgs e)
        {
            e.AppointmentEditDialog = new CustomEditAppointmentDialog(new CustomOpenRecurringAppointmentDialog());
        }
    }
     
    public class CustomEditAppointmentDialog : EditAppointmentDialog
    {
        public CustomEditAppointmentDialog(IOpenRecurringAppointmentDialog openRecurringAppointmentDialog)
            : base(openRecurringAppointmentDialog)
        {
        }
    }
     
    public class CustomOpenRecurringAppointmentDialog : OpenRecurringAppointmentDialog
    {
        public CustomOpenRecurringAppointmentDialog()
            : base()
        {
            InitializeComponent();
        }
     
        private void InitializeComponent()
        {
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            //
            // CustomOpenRecurringAppointmentDialog
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.ClientSize = new System.Drawing.Size(418, 158);
            this.Name = "CustomOpenRecurringAppointmentDialog";
            //
            //
            //
            this.RootElement.ApplyShapeToControl = true;
            this.RootElement.MinSize = new System.Drawing.Size(150, 36);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
    }

    In regards to the problem where the appointment's name is not shown, I was not able to reproduce this on my end. Could you confirm which version of the controls you are using?

    Hope this helps. Feel free to ask if you have any further questions.

    Kind regards,
    Ivan Todorov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  6. Chris
    Chris avatar
    6 posts
    Member since:
    Dec 2010

    Posted 10 Aug 2011 Link to this post

    Thanks for your answer.  I was able to use your example to successfully modify the dialog to show the size and text I was looking for.

    Best Regards.
  7. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 11 Aug 2011 Link to this post

    Hello Chris,

    We are glad that we could help. Should you have any other questions, do not hesitate to contact us.
     
    All the best,
    Stefan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top
UI for WinForms is Visual Studio 2017 Ready