We are trying to create a customized appointment dialog for the xamSchedule control. We need to be able to include additional fields on the dialog. The documenation states that it is better to use the AppointmentDialogCore. How would we go about doing this?
Hello,
You can customize the appointment dialog by re-template of the AppointmentDialogCore. You can get its template from DefaultStyles folder where the product is installed i.e. “C:\Program Files\Infragistics\NetAdvantage 2010.3\Silverlight\Default Styles\Schedule”. The template for AppointmentDialogCore is in generic.xaml file. Hope this helps.
Thanks,
Diyan Dimitrov
Hi,
I have tried modifying (i.e. removing some controls that I dont want to be displayed) generic.xaml placed in my C:\Program Files\Infragistics\NetAdvantage 2010.3\Silverlight\Default Styles\Schedule
However, when I run my application, I still see the the controls i.e. the changes are not reflected. Can you please let me know what am I doing wrong here?
Deven
Hello Diyan
I am using a custom appointment dialog (a user control) and I would like to close the window via code once the user has pressed (my custom) save button. Then I save the brand new data to the database and I would like to:
1) Close your window (the one hosting my usercontrol) via code
2) Notify the XamOutlookCalendarView that it needs to refresh its appointments
Is that possible?
Roberto Dalmonte
Hi Imanuel,
Thanks for your reply... I have been able to handle the event...
Have another question as under:
I understand that we need to map the properties to their respective object.properties (for e.g appointment properties - id, description etc..)
What do I need to do in case myown object i.e. MyAppointment has few more properties than those defined by the tool. Is there a way wherein I can save my own properties to be saved/retrieved along with the pre-defined existing ones?
Can you please help?
singhdeven,
This is what I did to accomplish this.
using Infragistics.Controls.Schedules;
namespace My.Controls.Schedules{ public class DataConnector : ListScheduleDataConnector { protected override ActivityBase CreateNew(ActivityType activityType, out Infragistics.DataErrorInfo errorInfo) { errorInfo = null; return new MyAppointment(); } }}
In order to work with the cutsom appointment, you will need to override the CreateNew method in what ever type of Connector you will be using. This is the where the calendar and appointment dialog get it's appointment from.
Once I have modified the AppointmentDialog to include some of my own fields/properties, how do I save the same?
I can extend the appointment class and add properties of my own so as to achieve this. However while saving it tries to save the default appointment object and gives an error because it is expecting an appointment of my own type. Now how do I override the following events to handle this:
Hi Deven,
You should copy and include the whole generic.xaml file in your project or only to copy the resources that you need from it into your project. Hope this helps!