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

Ajax data binding silently eats exceptions

2 Answers 44 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 16 Nov 2011, 04:26 AM
It looks as if when using Ajax data-binding with the new Chart control, and the server returns a 500 error (which happened to me because of a small oversight on my end), the control silently eats the exception and simply renders the outer <div> tag for the Chart control.

I know that the Grid control will, at the very least, pop up a Javascript alert() box if an Ajax request returns a 500.  It would be nice if the Chart control did the same.  I spent at least 15 minutes trying to figure out why my Chart control wasn't rendering properly, making sure all my syntax was correct against the example on this site.  It wasn't until I opened Fiddler and noticed that the Ajax request was returning a 500.

I'm at home now and not at work, so I can't provide an example project right this moment, but I can if one is needed.

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 17 Nov 2011, 04:51 PM
Hello James,

Thank you for pointing out this omission. Other extensions, such as the Upload, show an alert and raise an error event in this situation. If the error event is prevented (via preventDefault) the alert is not shown.

We'll add similar logic to the Chart as well.

As a token of gratitude for your involvement your Telerik points have been updated.

Best wishes,
Tsvetomir Tsonev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
James
Top achievements
Rank 1
answered on 17 Nov 2011, 04:55 PM
Many thanks, Tsvetomir, for the Telerik points.  Anything I can do to help make others' experience using these controls better.  :)
Tags
Chart
Asked by
James
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
James
Top achievements
Rank 1
Share this question
or