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
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
0
Hi Alex,
Thank you for writing.
You can set the color of the item in RadListBox as shown below:
I hope this will help you.
Greetings,
Dobry Zranchev
the Telerik team
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
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
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
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
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 ?
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
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:
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
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.
