Why does Telerik have "Simple Data Binding", if it is apparently such a problem? Quite often, on many of the forum threads, it is recommended to use Advanced. They also recommended Adv. DB when getting the Insufficient Stack errors below. It happens when the user does multiple (4 or more) filter and sort operations on RadGrid. I switched to OnNeedDataSource, which then points to my BLL, then DAL; but, still no good about 80% of the time. It will intermittently behave about 20% of the time, whether I use NeedData... or Declarative.
Some of the forum blogs point to RadScriptManager, as the culprit. In my Master Page, I have ...
<telerik:RadScriptManager runat="server" EnableCdn="true" ID="RadScriptManager1" EnablePageMethods="true" />
With EnableCdn="true", I get the first error below. When I set EnableCdn="false", I get the second error message below. I also set both to false and got the second error message as well.
Another forum blog suggested to view the Call Stack, so I put Breaks in the RadGrid ItemCommand, if (e.CommandName == "Filter" || e.CommandName == "Sort"). The VS Call Stack listed about 20 items. Stepping beyond the ItemCommand event, it leaves my code and crashes, with an Unhandled exception somewhere in the Telerik assemblies. How anyone is supposed to diagnose an error inside a Telerik dll ... I don't know. Anyway, it looks like Telerik ASP.Net Ajax is having difficulty with Garbage Collection. I use version Q3 2014, but, it seems to be happening across multiple versions, because there are many posts about the same thing. And, to be fair, this might not be a Telerik issue. It might just be the underlying, less than perfect platform: ASP.Net/AJAX.
Any help will be appreciated.
-john-
Error #1 ...
Unhandled exception at line 881, column 13 in http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxWebForms.debug.js
0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Insufficient stack to continue executing the program safely. This can happen from having too many functions on the call stack or function on the stack using too much stack space.
Error #2 ...
Unhandled exception at line 15, column 16485 in http://localhost:49721/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:88fd0407-24cf-4abd-9df5-22f81b2bc835:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2014.3.1209.45,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:cd668efa-682a-4e93-b784-26f0724f247c:16e4e7cd:86526ba7:f7645509:24ee1bba:c128760b:19620875:874f8ea2:f46195d3:92fe8ea0:fa31b949:490a9d4e:bd8f85e4:11a04f7e:1e771326:88144a7a:4cacbc31:2a8622d7:e330518b:2003d0b8:c8618e41:1a73651d:333f8d94:ed16cbdc:8e6f0d33:6a6d718d:58366029:aa288e2d:258f1c72:e4f8f289
0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Insufficient stack to continue executing the program safely. This can happen from having too many functions on the call stack or function on the stack using too much stack space.