I have reviewed this demo but it seems to call to code behind and I am using a webservice and doing the tooltip client side.
http://demos.telerik.com/aspnet-ajax/tooltip/examples/overview/defaultvb.aspx?show-source=true
I currently have it working as a click on the event.
how can I do it as a Mouse Over?
http://demos.telerik.com/aspnet-ajax/tooltip/examples/overview/defaultvb.aspx?show-source=true
I currently have it working as a click on the event.
how can I do it as a Mouse Over?
function
OnClientAppointmentClick(sender, args) {
var
apt = args.get_appointment();
showTooltip(apt);
}
function
showTooltip(apt) {
var
tooltip = $find(
'<%=RadToolTip1.ClientID %>'
);
tooltip.set_targetControl(apt.get_element());
$get(
"startTime"
).innerHTML = apt.get_start().format(
"MM/dd/yyyy HH:mm"
);
$get(
"endTime"
).innerHTML = apt.get_end().format(
"MM/dd/yyyy HH:mm"
);
$get(
"TitleDiv"
).innerHTML = apt.get_subject();
$get(
"descriptionDiv"
).innerHTML = decodeEntities(apt.get_description());
tooltip.set_text($get(
"contentContainer"
).innerHTML);
setTimeout(
function
() {
tooltip.show();
}, 20);
}
function
decodeEntities(encodedString) {
var
textArea = document.createElement(
'textarea'
);
textArea.innerHTML = encodedString;
return
textArea.value;
}
<telerik:RadScheduler RenderMode=
"Lightweight"
runat=
"server"
ID=
"RadScheduler1"
SelectedView=
"MonthView"
StartEditingInAdvancedForm=
"true"
OnClientTimeSlotClick=
"OnClientTimeSlotClick"
OnClientAppointmentsPopulating=
"OnClientAppointmentsPopulating"
OnClientTimeSlotContextMenu=
"OnClientTimeSlotContextMenu"
OnClientAppointmentWebServiceInserting=
"OnClientAppointmentWebServiceInserting"
EnableDescriptionField=
"true"
AppointmentStyleMode=
"Default"
OnClientAppointmentDoubleClick=
"hideTooltip"
OnClientAppointmentContextMenu=
"hideTooltip"
OnClientAppointmentClick=
"OnClientAppointmentClick"
OnClientDataBound=
"onSchedulerDataBound"
ShowAllDayRow=
"False"
OverflowBehavior=
"Expand"
Height=
"100%"
>
<telerik:RadToolTip ID=
"RadToolTip1"
runat=
"server"
RelativeTo=
"Element"
Position=
"BottomCenter"
AutoCloseDelay=
"0"
ShowEvent=
"FromCode"
Width=
"250px"
>
<div id=
"contentContainer"
>
Starts on: <span id=
"startTime"
></span>
<br />
Ends on: <span id=
"endTime"
></span>
<br />
<div id=
"TitleDiv"
></div>
<hr />
<div id=
"descriptionDiv"
></div>
</div>
</telerik:RadToolTip>