Hello Sanjeeve,
As far as I know you asked the same question one year ago in that forum : http://es.infragistics.com/community/forums/p/73141/371576.aspx#371576 , but we didn`t received your feedback. I made a new sample and video tutorial specially for you, so if you have any questions this time, please do not hesitate to write us.
First of all, I`d like to mention that our Appointment could have ONLY one Owner and at that moment it is not possible to share one appointment with two or more Owners. You can suggest new product ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com .
Nevertheless, it is possible to solve this task, if you implement the code from the sample. Please take a look on attached sample and video file for more details and if you have any questions, feel free to write me
Regards
Here is the video file
Here is the sample
Hi,
Thanks for attached screenshot, but it is very difficult for me to guess what are the reasons for this issue in your sample, without to see your code. Could you please upload your sample (that reproduce the issue ) and I`ll be glad to research it for you.
Let me know if you have any questions.
Hi Georgi,
Thanks for you reply, Now its working fine in your sample. But i am still not able to figure out whats wrong in my code. The logic is something like this.
First of all i have listed out the Users in datatable ( Owner A , Owner B)
Now after that i have also listed out the Appointment for Owner A and Owner B.
When the Appointment is Bind with the Calendar it cause such issue in my Calendar But if i use the Single Owner its working fine. Just to let you know that my appointment window is custom one.
Am i Missing anything , Please let me know.
Here is the new sample
Hello Sanjeev,
Thank you very much for your response and video file. I was able to reproduce your issue, but it is a mistake in my code, because I remove the appointment from the same collection that I use for the loop. Please modify the sample with the code below:
private void ultraButton1_Click(object sender, EventArgs e)
{
Appointment[] appArray = new Appointment[ultraCalendarInfo2.Appointments.Count];
ultraCalendarInfo2.Appointments.CopyTo(appArray, 0);
foreach (Appointment app in appArray)
if (app.Tag == "OwnerA") ultraCalendarInfo2.Appointments.Remove(app);
}
foreach (Appointment app in ultraCalendarInfo1.Appointments)
byte[] appByteArray = app.Save();
Appointment appForOwnerB = Appointment.FromBytes(appByteArray);
appForOwnerB.Owner = ownerB;
appForOwnerB.Tag = "OwnerA";
ultraCalendarInfo2.Appointments.Add(appForOwnerB);
Please take a look on the new sample and video for more details. If you have any questions, feel free to write me
Here is the Snapshot