Update or Rebind Tooltip on Change

6 posts, 0 answers
  1. Marcel
    Marcel avatar
    21 posts
    Member since:
    Feb 2007

    Posted 02 May 2012 Link to this post

    Hello i have an Appointment item with some extended values wich i show in the tooltip.

    It works great, but when i change the appointment de tooltip doesnt update.
    The tooltip will update if i navigate back and forward 1 day.

    The same problem occurs when i want to update the appointment itself but i used the visualtreehelper to find the right uielements.

    How can i do this with the Tooltip?
    AppointmentsPanel obj = s.FindChildByType<AppointmentsPanel>();
               try
               {
                   var mobjs = obj.ChildrenOfType<AppointmentItem>().FirstOrDefault<AppointmentItem>(p => ((SessionAppointment)p.Appointment).ID == item1.ID);
                   var map = ((SessionAppointment)mobjs.Appointment);
                   map.Field22 = item1.Field22;
                   UIChildFinder.FindChild<Border>(mobjs, "BackgroundStatus").Background = map.LabelBrush;
                   UIChildFinder.FindChild<TextBlock>(mobjs, "AppLabelText").Text = map.LabelText;
     
     
                  ToolTip tt = (ToolTip)ToolTipService.GetToolTip(mobjs);
     
                  ?????
     
               }

    Please help me to manually change or update the tooltip.

    Greetings
    Marcel de Groot
  2. Marcel
    Marcel avatar
    21 posts
    Member since:
    Feb 2007

    Posted 08 May 2012 Link to this post

    Hello,

    In Addition, if we set the objectresource to a non visible resource. The appointment is gone... thats great, but the properties i set in the visualtree are past on to the other objects.... so the visual tree is messed up?

    The question stays how to repaint a appointment an tooltip (with extensions)  in scheduleview.

    Please help me with this issue

    Greetings
    Marcel de Groot

  3. DevCraft banner
  4. Marcel
    Marcel avatar
    21 posts
    Member since:
    Feb 2007

    Posted 24 May 2012 Link to this post

    Is there somebody who can help me with this problem?

    Greetings
    Marcel de Groot
  5. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 25 May 2012 Link to this post

    Hi Marcel,

    What event are you using to update the tooltip?

    Lancelot
  6. Marcel
    Marcel avatar
    21 posts
    Member since:
    Feb 2007

    Posted 29 May 2012 Link to this post

    Hi Lancelot,

    Thats exactly my question, i don't know how to update the tooltip.

    But the good news i found a workaround.
    I Created a custom control, which has an loaded event.
    In this loaded event i can set its values with the datacontext that is connected to it.

    It seems to solve my problem (woohoooooo!!!), but i surely still want to know if there is a better solution.

    Greetings Marcel
  7. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 29 May 2012 Link to this post

    That's great!!!

    What I recommend you doing if you'd like to see this feature added to the RadControls in the future is add a PITS (Public Issue Tracker) request. The PIT System allows you direct access to the telerik engineering team. It is a system where the customers can ask for a new feature or report a bug. The issue is then presented to everyone and can be voted on. The higher the votes the more attention it will get from the team.

    Many RadControl features have been added and bugs are quickly squashed though PITS. Here's the link http://www.telerik.com/support/pits.aspx

    Let me know if there is anything else I can help you with, I'm more than happy to help =)
    Lancelot
Back to Top
DevCraft banner