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

[Solved] How to create All Day appointments when binding

1 Answer 105 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chris Trina
Top achievements
Rank 1
Chris Trina asked on 17 Dec 2009, 12:46 PM
All of the items I want to display are full day items.  How can I tell the calendar this during data binding?  I'm looking for some property to bind to that specifys full day but can't find anything.

Thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Dec 2009, 02:21 PM
Hi Chris,

I have tried following code in order to show only full day appointments.

CS:
 
    protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e) 
    { 
        if (e.Appointment.Duration.Duration().Days > 0) 
        { 
            e.Appointment.Visible = true
        } 
        else 
        { 
            e.Appointment.Visible = false
        } 
    } 

-Shinu.
Tags
Scheduler
Asked by
Chris Trina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or