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

Proxy objects and value converter

6 Answers 63 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Oscar Wahlen
Top achievements
Rank 1
Oscar Wahlen asked on 10 Jun 2011, 11:18 AM
I am facing difficulties applying value converters to proxy items. My custom value converter is called only once because the proxy item is not recreated. The only work around that I know of is to change the view definition. But this isn't a solution. Is there an alternative method to have the values in a proxy object converted correctly?

6 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 10 Jun 2011, 12:18 PM
Hello Oscar,

We have few type of proxies - AppointmentItemProxy, GroupHeaderProxy and TimerRulerItemProxy.
Which one do you refering?
Also please specify the version of RadControls you are using.

Greetings,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Oscar Wahlen
Top achievements
Rank 1
answered on 10 Jun 2011, 12:48 PM
It is the TimerRulerItemProxy object but I am experiencing similar behavior with the other proxy object types. And I am binding to the DateTime property.

The first time I change the view definition the converter is called once for every proxy item. But when I navigate the ScheduleView back and forth the converter is not called. This happens with internal build 2011_1_0419.
0
Oscar Wahlen
Top achievements
Rank 1
answered on 10 Jun 2011, 03:36 PM
We have managed to work our way around it by adding a StackPanel with three TextBlock controls to the DataTemplate of our TimeRulerItemTemplateSelector (one for each custom date and time format string) and binding the Visibility properties of each control to our view model. This way we can control what format to display in our headers. This is certainly not the solution we are looking for, but it does the trick for now.
0
Hristo
Telerik team
answered on 15 Jun 2011, 09:02 AM
Hello Oscar,

I'm unable to reproduce this problem.
I've attached sample project demonstrating that TimeRulerItemTemplateSelector is called when you change view definitions.
If this is different for your scenario please modify it so that we can reproduce this problem.

Kind regards,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Oscar Wahlen
Top achievements
Rank 1
answered on 23 Jun 2011, 12:50 PM
Hi,

Thank you for your effort.

The issue was not in the ScheduleView navigation. It seems like the converter does get called. In this specific scenario we wanted to display three different date formats based on a global setting. The setting was passed to our converter as converter parameter. And changing this setting did not reflect directly to the ScheduleView because it did not trigger the converter.

I guess we'll have to find a way to notify the proxy object when the setting property has changed which in turn will trigger the converter again.
0
Hristo
Telerik team
answered on 24 Jun 2011, 07:12 AM
Hello Oscar,

If you could send us repro project we may be able to help.

Best wishes,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Oscar Wahlen
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Oscar Wahlen
Top achievements
Rank 1
Share this question
or