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

AjaxUpdate

5 Answers 170 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
DonKitchen
Top achievements
Rank 1
DonKitchen asked on 30 Jan 2008, 05:17 PM
It seems that my AjaxUpdate event is firing for controls that haven't been added to the ToolTip manager's target control collection.

I have a DataList and am adding my linkbutton controls in the ItemDataBound event.  It seems that however some imagebuttons that I have in a different content container (I'm using master pages) seems to trigger the AjaxEvent.

This also seems to be impacting the ability of my linkbuttons to show as the targetcontrols in the AjaxUpdate event when the linkbutton should be the source.


5 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 01 Feb 2008, 05:18 PM
Hi DonKitchen,
In case your TargetControls collection is not empty, the only controls that should be tooltipified, are the ones, whose IDs are in it. I am not quite sure what might be causing the described behavior. If you could prepare and send us a running project, demonstrating the problem, we will do our best to find out what is causing it.

Best wishes,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
DonKitchen
Top achievements
Rank 1
answered on 12 Feb 2008, 02:56 PM
I have continued to play with the issue and to send you my exact scenario as a working project would require an extensive amount of work.

I seem to be getting a JavaScript error that I believe is a result of multiple Took Tip Managers being added to the page.

Here's an overview of how my process runs.  I'm hoping something in this description can tip you off as to what my problem may be:

1. A content page (I'm using master pages) dynamically adds 1-n user controls to the page.  The content page (the main page) doesn't have a RadToolTipManager on it.  The user controls are added to an asp:PlaceHolder tag.

2. Each user control, which I call "Team" controls, have a RadToolTipManager on them.  Keep in mind there can be 1-40 of these Team controls on the main page.

3. Each Team Control has 2 data sources and 2 data driven controls (1 a Data List, 1 a Data Reader).  In these data driven controls' ItemDataBound Events handle adding these dynamic controls to the RadToolTipManager.  The controls that are added to the data lists and readers, are other user controls whose properties are set just prior to adding them to the RadToolTipManager.

4. The Team controls have various DataSources that pull back data from my database.  The DataSource parameters are driven by public properties on the user control, so they fire the bind statement again once the properties are set (this is the same way you guys do it in your sample)

5. When the page shows, none of the tool tips that SHOULD fire off produce any useful tool tips (some are empty tooltip windows, some do nothing), and controls that were never added to the toolTipManager (such as navigation links) show empty tool tips.

6.  Again, I see a JavaScript error at the bottom that says: "A control is already associated with the element"

I'm not sure how to attach a file to this reply, so I'm going to post a link to a zip file that contains the files that are associated with this process.  From looking at the markup and code behind, you should get the idea of what I'm doing.  Please let me know if you have any other questions for me.

The link to download the file (which contains a PDF, and the code for the pages I'm describing) is here:

http://download.yousendit.com/BDE43E7918277B1C


0
DonKitchen
Top achievements
Rank 1
answered on 14 Feb 2008, 02:40 PM
Anybody?
0
DonKitchen
Top achievements
Rank 1
answered on 14 Feb 2008, 03:03 PM
Okay, part of my problem was solved by following the conversation in this thread:
http://www.telerik.com/community/forums/thread/b311D-hebgg.aspx.aspx#475119

Part of the problem was that each user control that was being added (which had its own RadToolTipManager sometimes didn't dynamically add any target controls.  This was because the datasets were not returning data in all scenarios, which resulting in nothing to "tooltipify".

This brings me to my other (and hopefully last) problem.  I'm still getting a JavaScript error indicating that a control with the same name has already been added to the page.  This seems to be because each UserControl has its own RadToolTipManager.  Is this something that wouldn't be allowed?  I was hoping the UserControls could have their own managers and manage everything internally.
0
Tsvetie
Telerik team
answered on 15 Feb 2008, 02:22 PM
Hello DonKitchen,
First of all, please make sure that you are using the latest version of the Prometheus suite, namely version 2007.3.1314.20.

In case this does not solve the problem, please check whether you have a RadGrid (RadGrid classic) with EnableAjax set to true in one of your usercontrols and whether the problem persists if you disable the ajax of the grid. In case this solves the problem, please disable the ajax of the RadGird and place both controls (RadGrid and RadToolTipManager) in an UpdatePanel with UpdateMode set to "Conditional".

You can find additional information in our online documentation. In case my assumptions are not correct, we will really need a simple running project with which to investigate what is causing the problem.

Sincerely yours,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
DonKitchen
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
DonKitchen
Top achievements
Rank 1
Share this question
or