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

Custom Alarm Form for Reminder

5 Answers 162 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 27 Oct 2010, 03:24 PM
I am using Custom Alarm Form for Reminder based on your Examples code.

I would like to change the back color of each item in RadListBox, at creation, depending on some scheduled item properties.

How do I go about it?

If it is not possible to do it with RadListBox, how would I go about using some other control, bind it to the reminder and achieve different back colors?

Thanks,
  Aleksandar

5 Answers, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 01 Nov 2010, 05:08 PM
Hi Alex,

Thank you for writing.

You can set the color of the item in RadListBox as shown below:
RadListBoxItem item = this.radListBox1.Items[0] as RadListBoxItem;
item.ItemFill.BackColor = Color.Red;

I hope this will help you.

Greetings,
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
Alex
Top achievements
Rank 1
answered on 18 Nov 2010, 05:37 PM
What if I want to use a custom UserControl instead of RadListBox?

I assume it would need to inherit some other class???

How do I bind it to a reminder, like I do for the RadListBox.

Thanks
0
Dobry Zranchev
Telerik team
answered on 23 Nov 2010, 04:58 PM
Hi Alex,

Thank you for writing.

I am not sure regarding the custom control scenario that you are describing. Please, sent us a sample project which describes it and we will try to find the best option.

Regarding your other questions: You are able to add objects that implement IReminderObject interface to RadReminder control. For more information please check the following help article.

I hope this helps.

Best wishes,
Dobry Zranchev
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
Aref
Top achievements
Rank 1
answered on 19 Apr 2019, 08:22 AM
Dear Telerik Team
I have problem to access List view in Alarm form in order to change its font is there any possible way to do that ?   
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Apr 2019, 10:31 AM
Hello, Aref,    

In fact, RadAlarmForm internally uses a RadGridView to display the upcoming appointments, not a list-view. You can access it by handling the AlarmFormShowing event and accessing the desired control from the Controls collection as it is demonstrated below:

public RadForm1()
{
    InitializeComponent();
 
    Appointment a = new Appointment(DateTime.Now.AddSeconds(5), TimeSpan.FromMinutes(45), "Lunch");
    a.Reminder = TimeSpan.FromSeconds(3);
     
    this.radScheduler1.Appointments.Add(a);
 
    RadReminder reminder = new RadReminder();
    reminder.AddRemindObject(a);
    reminder.TimeInterval = 1000;
    reminder.AlarmFormShowing += reminder_AlarmFormShowing;
    reminder.StartReminder();
}
 
private void reminder_AlarmFormShowing(object sender, RadAlarmFormShowingEventArgs e)
{
    RadAlarmForm alarmForm = e.AlarmForm as RadAlarmForm;
    RadGridView grid = alarmForm.Controls["radGridViewEvents"] as RadGridView;
    foreach (GridViewRowInfo row in grid.Rows)
    {
        Console.WriteLine(row.Cells[1].Value);
    }
}

Note that most of the forum threads are reviewed by Telerik representatives and sometimes we address the questions asked by our customers in the forums as well. However, a post in the forum doesn't guarantee you a response from the Telerik support team. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket. Thank you for your understanding.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Scheduler and Reminder
Asked by
Alex
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Alex
Top achievements
Rank 1
Aref
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or