Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to display a custom ToolTip when hovering with the mouse over an appointment

$
0
0

This example illustrates how to customize an appointment ToolTip (by default, it invokes an appointment context menu). To do this, you should override a CustomAppointmentTooltip template of the ASPxScheduler (see Templates).

Basically, you can use the ASPxClientScheduler.RefreshClientAppointmentProperties Method to obtain standard and custom appointment fields (see CustomFields in AppointmentToolTip). However, in v2010 vol 2 we have implemented a simpler and more flexible mechanism for preparing arbitrary values (not only standard and custom field values) for a client-side appointment object: Provide the ability for the client appointments to always possess certain properties. In previous versions, a similar functionality can be achieved only when using custom JSProperties (see aspxscheduler tooltip).

Also, there is a CalculatePosition() method in the ASPxClientToolTipBase class. You can override it in the inheritor (custom tooltip) to provide custom coordinates as shown in the Appointment tooltip position thread.

Question Comments

Added By: Oleg Vetrov 1 at: 8/31/2015 1:16:47 AM    

This example works well in a browser. When viewing in the control System.Windows.Forms.WebBrowser I get an error. AppointmentToolTip pops up, but data is not available.

Added By: George (DevExpress Support) at: 8/31/2015 4:31:22 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T284011: An exception is thrown if the E3224 example was run with the System.Windows.Forms.WebBrowser component. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>