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

Bug: Stack Overflow Error

2 Answers 44 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Thomas Salt
Top achievements
Rank 1
Thomas Salt asked on 16 Apr 2008, 08:40 PM
Hi,  Just incase anyone else runs into this problem I'll post it.  This drove me crazy today.  I'm not really sure if this is a charting problem or a tooltip problem.

I have an aspx page with a UserControl I created of a RadChart.  I display two instances of this rad chart.  One whenever the page is viewed and another in a tooltip. The first is located at the top of the page and does not contain labels or any unessecary data.  It's just a pie chart and a legend.  A condensed version I guess you could call it.  Then once the user mouses over the Chart a tooltip pops up displaying the graph with all of the data and variables.  Please note the the ToolTip animation mode was set to Fade.

Now the problem.  It worked fine when the page loads.  However if I go into edit mode in the grid and then click the save button (to come out of edit mode) I kept receiving a Stack Overflow error.  On the save button event I had to recreate the charts incase some of the data was changed in the grid.  The charts are directly related to the grid.

I narrowed the problem down to the fact that I was using the "Fade" tooltip animation mode.  The Stack Overflow would only occur if I immediately went from viewing the tooltip to clicking the edit button on the grid.  If I came to may page and did not view the tooltip and then clicked the edit button I would not recieve the error.  Once I stopped using the "Fade" animation mode my page started to work correctly.  I am assuming it has something to do with the tooltip still being in memory somewhere.

Anyways, I just wanted to point that out and hope it helps someone else who may find themselves in the same position.

2 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 17 Apr 2008, 06:41 AM
Hello Thomas,

Is it possible that you send us a small sample demonstrating the problem?
We are not sure what could be causing it, but it looks like you might be using AJAX for the grid operations. When an AJAX call starts, if the tooltip is located in a part of the page, which needs to be update using a partial page update, it needs to be closed, and disposed. Having an animation that slows the close functionality might have something to do with the error you got.

So far the only error that has been reported to us in this scenario is the "two components with the same ID....".
In the Prometheus Futures build released on March 25th with a version number 2008.1.325.20 this particular problem was addressed and the tooltip works fine even when its parent element / target control are participating in AJAX update.

One thing you could try is download the just released official Q1 2008 RadControls for ASP.AJAX and see if the tooltip error goes away. In case it does not, sending us a sample that reproduces the problem will allow us to examine what is causing it and fix it ASAP.

Regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Thomas Salt
Top achievements
Rank 1
answered on 17 Apr 2008, 01:36 PM
What you're saying makes sense and the more I thought about I realized it wasn't really a BUG.  I've put javascript in all my pages that use tooltips to close any active tooltip on an ajax request because I have run into this problem before.  It seems the Fade animation was not entirely disposing of the tooltip before the ajax call.  Anyways, I was just posting the info incase anyone else ran into the problem.

Take Care.
Tags
ToolTip
Asked by
Thomas Salt
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Thomas Salt
Top achievements
Rank 1
Share this question
or