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

RadToolTip on Appointment Created

3 Answers 54 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 28 May 2009, 12:18 AM
Here's an example of what I'm working with:

http://www.mccsokinawa.com/functionalfitness/

Why is it that only the appointments for the current month get added into the ToolTipManager's TargetControls? I need all appointments on the calendar to have tooltips, but if you go to June, for example, none of the appointments have tooltips because they weren't displayed on the current month.

Here is my insert code:

        protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)  
        {  
 
            string clientID = e.Appointment.ClientID;  
            RadToolTipManager1.TargetControls.Add(clientID, e.Appointment.ID.ToString(), true);   
 
        }  
 
        protected void RadToolTipManager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)  
        {  
 
            int toolTipID = Convert.ToInt16(e.Value);  
            DataExercisesTableAdapters.ExercisesTableAdapter adapter = new DataExercisesTableAdapters.ExercisesTableAdapter();  
            string description = "<p><strong>Click exercise name to watch video</strong></p>" + adapter.GetDescription(toolTipID).ToString();  
            Label lblText = new Label();  
            lblText.Text = description;  
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(lblText);  
 
        } 

I could use some quick help as I have an important meeting regarding this application coming up on Monday. Thanks.

3 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 29 May 2009, 03:05 AM
Help!!!!! Please!!!!
0
Svetlina Anati
Telerik team
answered on 29 May 2009, 02:37 PM
Hi David,

I examined the provided url and as far as noticed you have ajaxified the RadScheduler with a RadAjaxManager control. However, when you change the month and perform an ajax request, you should also update the RadToolTipManager as well as the RadScheduler and I think that this is the reason for the problem. Please, add the RadToolTipManager to the ajax settings in order to update it when you update the scheduler and test again.

You can find a sample online demo which demonstrates a similar scenario with the same need for update of the TargetControls collection with ajax below:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx

Note, also that forum threads are considered public resources and in case you want to ensure that you will get a timely response, you should open a support ticket.

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
David
Top achievements
Rank 1
answered on 31 May 2009, 10:42 PM
Perfect! It always makes me laugh when it's something this simple. I wouldn't have guessed. Thanks so much.

I prefer to post threads as you all usually get back to me within a few days. This way, if anyone else runs into a similar problem, they can get helped without having to open a ticket, and it's easy to view my threads for future reference if I run into the same problem again.

Thanks for all you all do. :)
Tags
ToolTip
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or