appointment occurrence tooltip in recurrence

12 posts, 0 answers
  1. Iurie Coroban
    Iurie Coroban avatar
    32 posts
    Member since:
    Jan 2004

    Posted 28 Apr 2011 Link to this post

    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?
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 29 Apr 2011 Link to this post

    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
  3. Iurie Coroban
    Iurie Coroban avatar
    32 posts
    Member since:
    Jan 2004

    Posted 29 Apr 2011 Link to this post

    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?
  4. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 01 May 2011 Link to this post

    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
  5. Iurie Coroban
    Iurie Coroban avatar
    32 posts
    Member since:
    Jan 2004

    Posted 03 May 2011 Link to this post

    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.
  6. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 04 May 2011 Link to this post

    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
  7. Iurie Coroban
    Iurie Coroban avatar
    32 posts
    Member since:
    Jan 2004

    Posted 04 May 2011 Link to this post

    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?
  8. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 05 May 2011 Link to this post

    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
  9. Martha
    Martha avatar
    26 posts
    Member since:
    Aug 2011

    Posted 04 Oct 2011 Link to this post

    Could you please tell me which version has the Start and End fix?
  10. Rosi
    Admin
    Rosi avatar
    2529 posts

    Posted 05 Oct 2011 Link to this post

    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 >>

  11. Martha
    Martha avatar
    26 posts
    Member since:
    Aug 2011

    Posted 05 Oct 2011 Link to this post

    Is that the 2011 Q2 release or the 2010 Q2 release?
  12. Rosi
    Admin
    Rosi avatar
    2529 posts

    Posted 05 Oct 2011 Link to this post

    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 >>

Back to Top