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

VisibleRangeChanged and GroupFilter Q2 2011

2 Answers 47 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 20 Jul 2011, 03:51 PM

Is it possible that the VisibleRangeChanged event is not fired anymore when GroupFilter changes?

I do use a Viewmodel that implements a GroupFilter as well as a delegate for the VisibleRangeChangedCommand.

The delegate for VisibleRangeChangedCommand loads data from a database. When updating GroupFilter through the ViewModel in Q1 2011 VisibleRangeChangedCommand got called but this is not the case in Q2 2011.

 

 

 

 

 

 

 

.

2 Answers, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 20 Jul 2011, 04:04 PM
Hello Markus,

You are correct, the VisibleRangeChangedCommand is not called anymore unless a property that affects the visible range is changed. Those properties are ActiveViewDefinition, DayEndTime, DayStartTime,
FirstDayOfWeek, VisibleDays and CurrentDate.

Why do you need to refresh the data when the GroupFilter property is changed? Probably there is a better place to do that?

Best wishes,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Markus
Top achievements
Rank 1
answered on 20 Jul 2011, 04:35 PM

Thx Valery for the fast reply. The viewmodel reloads data when VisibleRange changes but also when GroupFilter changes. As GroupFilter changes did trigger the VisibleRangeChanged event, no further code to load data was needed and when initializing the ViewModel no call to get VisibleRange was needed.

I'll try to choose a different approach as things have changed.

Markus

Tags
ScheduleView
Asked by
Markus
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Markus
Top achievements
Rank 1
Share this question
or