1

Closed

Exception when using unbound UpdatePanelAnimationExtender

description

I'm getting the following error using UpdatePanelAnimationExtender: Unable to get property 'id' of undefined or null reference. This did not happen prior to v15.1.3. My guess is it has something todo with the fix in workitem 15788.

The exception is thrown when clicking a row in the GridView. I've attached a sample application showing the problem. The exception only occurs once per full page refresh, but the onUpdating and onUpdated script methods never run after that.

By commenting out the code in GridView1_RowDataBound and the hiddenColumn css class and use the "Select" link button on the GridView to select a row instead then no exception is thrown.

file attachments

Closed Mar 10, 2016 at 4:08 PM by MikhailTymchukDX
AJAX Control Toolkit was moved to GitHub: https://github.com/DevExpress/AjaxControlToolkit
The fix for this issue is available with the v16.1 release: https://github.com/DevExpress/AjaxControlToolkit/releases/tag/16.1.0

comments

MikhailTymchukDX wrote Dec 1, 2015 at 7:49 AM

You are right, this behavior was changed because of the fix introduced in the context of the 15788 thread.
I updated the source code so that your sample works correctly, while triggers in the UpdatePanel will work as previously.
This fix will be available in the next release.

johnzered wrote Dec 1, 2015 at 1:39 PM

Thank you, now my provided test example works. Also my real application doesn't crash anymore but the onupdated event is still not fired. This has been a problem in my application since the december 2013 release. Unfortunately I've not been able to isolate why onUpdated is not firing. I just tried adding
<Triggers>
<asp:AsyncPostBackTrigger ControlID="GridView1" />
</Triggers>

But then the same exception is thrown again. (This also happens with my provided test application.)

MikhailTymchukDX wrote Dec 1, 2015 at 3:03 PM

Adding AsyncPostBackTrigger with ControlID="GridView1" has no effect, because clicking a row of the GridView calls a special JavaScript function __doPostBack(), which is not related to any control.

Would you please remove any code that is not related to this issue from your real application, and attach it to the current work item?

johnzered wrote Dec 2, 2015 at 6:32 AM

I was able to figure out why onUpdated is not firing. When you have more than one UpdatePanel on a page only onUpdating is fired not onUpdated. I've updated my testapplication.

MikhailTymchukDX wrote Dec 2, 2015 at 11:13 AM

Thank you for pointing that out.
There was a bug in the UpdatePanelAnimationBehavior source code that did not allow onUpdated() to be called.

It is fixed now and the fix is available in the latest version of the source code. Please let me know if this change helps you. 

johnzered wrote Dec 2, 2015 at 11:51 AM

I cannot se any code changes being committed since yesterday?

johnzered wrote Dec 2, 2015 at 11:54 AM

OK, now it's there. Probably some kind of delay somewhere. I will test right away and let you know the result.

johnzered wrote Dec 2, 2015 at 12:50 PM

Yes, now it works as expected. Thank you. Do you already have a date for your next release?

MikhailTymchukDX wrote Dec 2, 2015 at 2:59 PM

We have no release date defined yet, but it is unlikely to be this year.

MikhailTymchukDX wrote Feb 2, 2016 at 1:02 PM

The title was edited as this issue is included in What's new list for the v16.1 release.