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

appointment occurrence tooltip in recurrence

11 Answers 158 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Iurie Coroban
Top achievements
Rank 1
Iurie Coroban asked on 28 Apr 2011, 11:29 AM
Hi, Telerik!
 I have a little question. In my project i have to show appontment tooltip in wich i need to display appointments strat and  end  . If appointment has a recurrence, on each occurence it get start and end of parent appointment, not for current occurence. How i can resolve this issue?

11 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 29 Apr 2011, 10:11 AM
Hi Iurie,

In order to get all the occurrences of a recurring appointment I can suggest you to use the GetOccurrences() method. In that way you will have all the occurrences and you can get their start and end time.

Hope this information helps.

Best wishes,
Konstantina
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
Iurie Coroban
Top achievements
Rank 1
answered on 29 Apr 2011, 12:43 PM
Thanks, Konstantina , for reply! I knew about GetOccurrences() method. But it is a problem to find in the list of occurrences that one, on wich users cursor shows. Can you suggest me the decision?
0
Hristo
Telerik team
answered on 01 May 2011, 07:34 AM
Hello Iurie,

RadScheduleView have TooltipTemplate property which you can use to show custom tooltip on all appointments/occurrences.
The DataContext of the Tooltip however is not appointment but AppointmentItemProxy. This is custom class used for performance optimizations. It has Start, End, Subject and other appointment properties (but not all) which gives you the start/end of the current occurrence. It also has Appointment property which holds the master appointment. So in your scenario you have to create DataTemplate and bind the Textblock Text property to Appointment.Start and the next Textblock to Appointment.End.

Let us know if you need more information.

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
Iurie Coroban
Top achievements
Rank 1
answered on 03 May 2011, 08:46 AM
Hi,Hristo !
Yes, I use DataTemplate and bind the textblock text property as you say, but it shows the Start and End of appointment, not for his occurrence! Here is my simple Tooltip template:  
<DataTemplate x:Key="ToolTipTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Appointment.Start}"/>               
                <TextBlock Text=" - "/>
                <TextBlock Text="{Binding Appointment.End}"/>
            </StackPanel>
</DataTemplate>
I have tried to bind just Start and End. But it is still displaying Start and End of main apppointment.
0
Hristo
Telerik team
answered on 04 May 2011, 08:02 AM
Hi Iurie,

You are correct. We have a bug in the logic that sets Start and End properties and they are always as the master appointment. We will fix it for the next Latest Internal Build.

Thank you for reporting this issue. I've updated your telerik points.

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
Iurie Coroban
Top achievements
Rank 1
answered on 04 May 2011, 09:21 AM
Thanks, Hristo!
    I have another issues related to the recurrence. The ScheduleView gives to user ability to edit or delete occurrence of appointments. I can use  GetOccurrences method to get all appointments and save them in my database, but how can i set to master appointment the list of modified occurrences. Is there something like SetOccurrences method, or may be i should set some properties in  ReccurenceRule?
0
Hristo
Telerik team
answered on 05 May 2011, 01:47 PM
Hello Iurie,

Occurrences are generated based on RecurrenceRule. You cannot set  them except for exceptions (e.g. occurrences which violate the rule).
You can read more about Occurrences here:
http://www.telerik.com/help/wpf/radscheduler-features-recurrences-overview.html

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
Martha
Top achievements
Rank 1
answered on 04 Oct 2011, 08:24 PM
Could you please tell me which version has the Start and End fix?
0
Rosi
Telerik team
answered on 05 Oct 2011, 08:05 AM
Hi Martha,

I suggest you try our Q2 SP1 release that is available for download in your account. This version should contains the described fix.

Best wishes,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Martha
Top achievements
Rank 1
answered on 05 Oct 2011, 02:43 PM
Is that the 2011 Q2 release or the 2010 Q2 release?
0
Rosi
Telerik team
answered on 05 Oct 2011, 03:49 PM
Hi Martha,

I meant Q2 2011 SP1 release. I am sorry for the misunderstanding.

Greetings,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Iurie Coroban
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Iurie Coroban
Top achievements
Rank 1
Hristo
Telerik team
Martha
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or