Custom Alarm Form for Reminder

6 posts, 0 answers
  1. Alex
    Alex avatar
    54 posts
    Member since:
    Feb 2009

    Posted 27 Oct 2010 Link to this post

    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
  2. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    353 posts

    Posted 01 Nov 2010 Link to this post

    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
  3. Alex
    Alex avatar
    54 posts
    Member since:
    Feb 2009

    Posted 18 Nov 2010 Link to this post

    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
  4. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    353 posts

    Posted 23 Nov 2010 Link to this post

    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.
  5. Aref
    Aref avatar
    21 posts
    Member since:
    Sep 2015

    Posted 19 Apr Link to this post

    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 ?   
  6. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3462 posts

    Posted 19 Apr Link to this post

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