How to highlight selected day of C1Schedule in C1Calendar in WeekView

Posted by: C_S.Kalaivanan on 18 March 2019, 5:20 pm EST

    • Post Options:
    • Link

    Posted 18 March 2019, 5:20 pm EST

    Hi,

    In C1Schedule, am keeping ViewType as WeekView, So 7 days is selected in C1Calendar. Lets say Selected days is “17 Mar 2019” to “23 Mar 2019”, I am clicking on any one of the cell(Day is “19 Mar 2019”) in C1Schedule. I need to highlight(with different color or by any other font change) the selected day in C1Calendar. Please help me to achieve this functionality.

  • Posted 19 March 2019, 10:03 pm EST

    Hello,

    To meet your requirement you should access clicked date by CurrentDate property of C1Schedule in the MouseClick event handler and add it to BoldedDates collection of C1Calendar.```

    private void C1Schedule1_MouseClick(object sender, MouseEventArgs e)

    {

    DateTime t = new DateTime[1];

    t[0] = c1Schedule1.CurrentDate.Date;

    c1Calendar1.BoldedDates = t;

    }

    
    Please go through the sample for better understanding.
    
    Thanks,
    Ruchir
    [zip filename="C1Schedule_Highlight.zip"]https://gccontent.blob.core.windows.net/forum-uploads/file-57426b25-288e-4c92-a8f8-547aa08c145d.zip[/zip]
  • Posted 19 March 2019, 11:39 pm EST

    Hi,

    Thanks for the reply, its working for me.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels