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

Update Start/End DateTime in ToolTip

5 Answers 101 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Lucie
Top achievements
Rank 1
Lucie asked on 02 Feb 2012, 02:00 PM

I have inside ToolTip for Appointment line

<TextBlock Text="{Binding Path=Appointment, Converter={StaticResource DateFormatConverter}}" />

to format both DateTime value (Start and End) in format what is suitable for our application.

It works after loading of Appointments, but after update Start/End in application form or by dragging is not called Converter to refresh Tooltip.

I have tried many variants but not any was successful.

 

Then I download example 314907_ScheduleView-CustomToolTip and modify ToolTip

 

<ToolTipService.ToolTip>
  <ToolTip>
    <Grid>
      <Border Background="LightBlue" MinWidth="100" Margin="-20 -4" Padding="5">
        <StackPanel Orientation="Vertical">
          <TextBlock Text="{Binding Subject}" />
          <TextBlock Text="{Binding Path=Appointment}" />
        </StackPanel>
      </Border>
    </Grid>
  </ToolTip>
</ToolTipService.ToolTip>

 

 

In second line is default conversion of Appointment which includes DateTime of Start and End.

After dragging to another day is tooltip not changed as in my application. See images.

 I think Tooltip is generated only one times.


I previously use RadScheduler where was reference to Appointment in form 
Path=Occurrence.Appointment

and it works fine without problem.

 

What I shell to do in ScheduleView to update Start and End values in Tooltip?

 

Regards

 

5 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 09 Feb 2012, 04:25 PM
Hello Jana,

Could you please share with us some more code and details about your application and the implementation of the ToolTip to the ScheduleView? Do you use custom appointment?
If you could send us your project so that we can run and debug it here, it will be really helpful for tracking down the problem in a timely manner.

Looking forward to your reply.

Regards,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Lucie
Top achievements
Rank 1
answered on 10 Feb 2012, 08:24 AM
Hello Konstantina,
you can modify project ScheduleView-CustomToolTip what somebody from Telerik attach to reply in ScheduleView thread
 "Custom Tooltip Display" (posted on Nov 17, 2011).
When you modify tooltip, as I wrote in my first email, you will see that after drag/grop appoinment is tooltip
not modified.
Appointment was moved from 10.2.2012 to 12.2.2012 (ScheduleView displays DateTime by local setting in notation
dd.mm.YYYY). See attachments.

regards

(By the way I cannot put email address for sending of copy you replies. Du ou know why it was removed from forum?)
0
Konstantina
Telerik team
answered on 15 Feb 2012, 12:29 PM
Hi Jana,

In order the ToolTip to update its value you need to bind it like so:

<TextBlock Text="{Binding Start}" />

You don't need a Converter, just bind to the Start property. The ToolTip was not updating, as the Appointment itself was not changed, but its Start property.

Hope this helps.

Kind regards,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Lucie
Top achievements
Rank 1
answered on 16 Feb 2012, 11:01 AM
I need to format Start and End to desired form. So I need both values. These values are included inside of Appointment
therefore I use whole Appointment in Binding.
I need to use two values in binding or set Appointment to state changed.
In Scheduler I have used  binding for Occurrence.Appointment and it works.

Can you give me a advice how to solve this situation?

Regards



0
Konstantina
Telerik team
answered on 20 Feb 2012, 02:18 PM
Hi,

If you need the end of the appointment also, you could bind to the End property, the same way as the Start, and using the StringFormat property of the binding to format it according to your requirements.

Kind regards,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ScheduleView
Asked by
Lucie
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Lucie
Top achievements
Rank 1
Share this question
or