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

Update or Rebind Tooltip on Change

5 Answers 104 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marcel
Top achievements
Rank 1
Marcel asked on 02 May 2012, 11:37 AM
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

5 Answers, 1 is accepted

Sort by
0
Marcel
Top achievements
Rank 1
answered on 08 May 2012, 07:58 AM
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

0
Marcel
Top achievements
Rank 1
answered on 24 May 2012, 08:21 AM
Is there somebody who can help me with this problem?

Greetings
Marcel de Groot
0
Lancelot
Top achievements
Rank 1
answered on 25 May 2012, 05:01 PM
Hi Marcel,

What event are you using to update the tooltip?

Lancelot
0
Marcel
Top achievements
Rank 1
answered on 29 May 2012, 09:47 AM
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
0
Lancelot
Top achievements
Rank 1
answered on 29 May 2012, 04:55 PM
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
Tags
ScheduleView
Asked by
Marcel
Top achievements
Rank 1
Answers by
Marcel
Top achievements
Rank 1
Lancelot
Top achievements
Rank 1
Share this question
or