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

check if appointment should be displayed

3 Answers 69 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Elgan
Top achievements
Rank 1
Elgan asked on 05 Dec 2012, 01:01 PM
I am trying to check in the appointmentFilter if the appointment will be displayed on the current view. 

How can I do this?


            

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Dec 2012, 01:52 PM
Hi Elgar,

Could you please explain the requirement in more details?

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Elgan
Top achievements
Rank 1
answered on 06 Dec 2012, 03:26 PM
An appointmentFilter seems to loop all appointments, correct?

While going through the filter. I want to check if an appointment will be displayed on the current view definition. 
0
Yana
Telerik team
answered on 11 Dec 2012, 01:15 PM
Hi Elgan,

You could bind CurrentDate property of the ScheduleView to a property in the ViewModel, so in this way you can find the VisibleRange of the current ViewDefinition ( here it is explained how the VisibleRange is configured for each ViewDefinition ) and you can check in the AppointmentsFilter whether the current appointment will be displayed. 

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Elgan
Top achievements
Rank 1
Answers by
Yana
Telerik team
Elgan
Top achievements
Rank 1
Share this question
or