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

Open Recurring Item Dialog Formatting

5 Answers 65 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Jeremy Murtishaw
Top achievements
Rank 1
Jeremy Murtishaw asked on 26 Apr 2010, 02:51 AM
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

5 Answers, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 26 Apr 2010, 02:41 PM
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.
0
Chris
Top achievements
Rank 1
answered on 12 Jul 2011, 04:03 PM
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.
0
Ivan Todorov
Telerik team
answered on 15 Jul 2011, 09:11 AM
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!

0
Chris
Top achievements
Rank 1
answered on 10 Aug 2011, 09:19 PM
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.
0
Stefan
Telerik team
answered on 11 Aug 2011, 03:33 PM
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 >>

Tags
Scheduler and Reminder
Asked by
Jeremy Murtishaw
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Chris
Top achievements
Rank 1
Ivan Todorov
Telerik team
Stefan
Telerik team
Share this question
or