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

View changed event

3 Answers 155 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
anatoly
Top achievements
Rank 1
anatoly asked on 01 Dec 2010, 12:05 PM
Hello,

I need to adjust appointment panel length every time ActiveViewDefinition is switched to prevent content scroll.

I try using MaxTimeRulerExtent property but can't find proper way to update it. Its value should be calculated as appointmnet panel length substract total headers length. The headers length is updated within MeasureOverride(). But ActiveViewDefinition changed event is rised prior to Measure/Arrange when I change active view.

What event should I listen or what another way suits better?

Thanks,
Anatoly

3 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 09 Dec 2010, 02:08 PM
Hello Anatoly,

You can bind a custom property to the ActiveViewDefinition property of schedule view. In this case you will be able to  detect when the view is changed.

Hope this helps.

Greetings,
Rosi
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
David Klein
Top achievements
Rank 1
answered on 22 Feb 2011, 05:15 PM
Hi,

I don't see the ActiveViewDefinition changed event anywhere (not in code, not in documentation). Am I doing anything wrong?

Thanks!
0
Valeri Hristov
Telerik team
answered on 23 Feb 2011, 10:23 AM
Hello Robert,

There is no ActiveViewDefinitionChanged event in RadScheduleView. You could use VisibleRangeChanged with the same effect, but it has a limitation - if you have two WeekViewDefinitions, with the same visible range, the event will not be fired. We will address this limitation with the next major release of RadScheduleView in March.

Regards,
Valeri Hristov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ScheduleView
Asked by
anatoly
Top achievements
Rank 1
Answers by
Rosi
Telerik team
David Klein
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or