RadScheduleView GetVisibleRangeStart/end in MVVM

1 Answer 50 Views
ScheduleView
Egbert
Top achievements
Rank 1
Iron
Egbert asked on 04 Sep 2024, 06:31 AM

Hi,

I would like to retrieve the VisibleRangeStart and VisibleRangeEnd properties after a VisibleRangeChanged event occurs.

How can I do that in mvvm?

I can track the changed event with:

<telerik:EventToCommandBehavior.EventBindings>
    <telerik:EventBinding Command="{Binding CustomCommand}" EventName="VisibleRangeChanged" />
</telerik:EventToCommandBehavior.EventBindings>

Thanks in advance,
Egbert

1 Answer, 1 is accepted

Sort by
0
Accepted
Stenly
Telerik team
answered on 04 Sep 2024, 09:25 AM

Hello Egbert,

For an MVVM approach with this requirement, you could utilize the VisibleRangeChangedCommand and VisibleRangeChangedCommandParameter properties of RadScheduleView.

This approach is showcased in the following article:

WPF ScheduleView - Load on Demand - Telerik UI for WPF

I hope the provided information will be of help to you.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ScheduleView
Asked by
Egbert
Top achievements
Rank 1
Iron
Answers by
Stenly
Telerik team
Share this question
or