Hi,
I've implemented a custom AppointmentDialog where one textbox is bound to a MetadataProperty.
When the subject-textbox lost focus i do a database query and fill some propertys according to the query result. But when i fill the MetadataProperty the textbox doesn't get the updated value.
Is there a method i have to call to update the binding or do i have to change the value manually?
Thanks in advance,
Bastian
HI Bastian,
Can you provide more details.
The MetaData - Is it a Dependency Property? What are your binding parameters?
Sincerely, MattDeveloper Support Engineer
Hi Matt,
in my solution I need some additional properties for an appointment.I found this post and tried to achieve this with the MetadataPropertyMappings of an Appointment : http://forums.infragistics.com/forums/p/56957/291414.aspx#291947
When I change the value in the UI the binding works as expected. But now I want to change the value in code-behind and the binding to the textbox in my custom AppointmentDialog doesn't get an update notification.
Sincerely,Bastian
This may be related to an outstanding issue whereby the Metadata is not correctly initialized when accessed after a custom dialog is displayed. To see if this is the same issue try hooking the ActivityDialogDisplaying event and add the following code and see if the issue persists.
var dc = ((XamScheduleDataManager)sender).DataConnector as ListScheduleDataConnector; foreach (var item in dc.AppointmentPropertyMappings.MetadataPropertyMappings) { object v = e.Activity.Metadata[item.MetadataProperty]; }
HI DiCom2010,
I am just following up on this post.
Please let me know if you need further assistance.
I have the code already in the event, but the issue persists.
Sincerely,
HI Dicom2010,
I have created a private case for this issue and will contact you via emaiil.
Sincerely, Matt Developer Support Engineer