Attached is a reproduction project page with a <script> containing a workaround.
Reproduction steps:
1) Run the page
2) Hover quickly between the two colored squares (do this up to 15-20 seconds)
3) Observe the error in the browser's console:
Uncaught RangeError: Maximum call stack size exceeded
at Function.Array.addRange
at Telerik.Web.UI.RadAjaxManager._executePendingRequest
at Object._endRequest
at Array.<anonymous>
at Sys.WebForms.PageRequestManager._endPostBack
at Sys.WebForms.PageRequestManager._scriptsLoadComplete
at Sys.WebForms.PageRequestManager.<anonymous>
at Sys._ScriptLoader._loadScriptsInternal
Workaround: Place/load this script somewhere after the ScriptManager of the page
<script>
Telerik.Web.UI.RadAjaxControl.prototype._executePendingRequest = function () {
var pendingRequest = Array.dequeue(this._requestQueue);
var eventTarget = pendingRequest[0];
var eventArgument = pendingRequest[1];
if (this._requestQueue.length > 0 && this.__id != "") {
var currentAjaxControl = $find(this.__id);
if (currentAjaxControl) {
Array.addRange(currentAjaxControl._requestQueue, this._requestQueue);
// optional, uncomment if issue persists
//if (currentAjaxControl._requestQueue.length > currentAjaxControl._requestQueueSize) {
// // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice#parameters
// // using negative index for start to get the last N elements
// currentAjaxControl._requestQueue =
// currentAjaxControl._requestQueue.slice(-currentAjaxControl._requestQueueSize)
//}
}
}
var requestManager = Sys.WebForms.PageRequestManager.getInstance();
requestManager._doPostBack(eventTarget, eventArgument);
}
</script>
Hi guy, I want use alert function in radajaxmanager, After i set radajaxmanager.alert, if c'ode is running it ,page will pop-up a window. but this window is middle positon in page. how can i solve this question.thanks. David
Based on feedback received from our customer, we can further improve our TypeScript definitions - the main concern is that there are still missing methods and incorrect signatures.
The RadTextBox are placed inside a asp gridview. When an item from the combo box in the page is selected. The server side logic hide one of the columns of the gridview using such approach: grdExamples.Columns[2].Visible = false; This, however, keeps the controls inside the vary same GridView. So during Ajax their ScriptDescriptrs got registered in the ScriptManager. When the result $create execute client side, the JS error is thrown. It can not be fixed in general, because we can not cover scenarios where the control is: 1. Visible 2. In the control collection. (have .Page!=null) 3. All it's parents are visible. 4. Does not render, because it's parent control ( the gridview) decides not to render some of it's childs. When all of 1,2,3,4 are true, the control will describe, but not visible in the output HTML resulting in error. It will happen in all controls (not only RadTextBox), when you are using the RadAjaxManager. Since the manager registers the ScriptDescriptors manually per control, before the Render of the page, therefore it can't know if the control is "Really Visible". This is limitation of the manager, that can not be changed without breaking fundamentals of how it works.
At present, you must provide the client-side ID of the element from which you want to remove the loading panel, which you cannot have when the loading panel is a DefaultLoadingPanel, for example, or when there has been an error and you simply want to hide all loading panels so the end user can continue working with the page. Calling hide() without arguments should hide all instances of the loading panel, regardless of the elements over which they are shown.
Sir i am using this rad ck editor in my project and i am trying to save that image in one folder with changes and also store that image path with client id in backed .And when client login then he/She will get that image as he drawed it last time. So will you please send me this task as soon as possible
Running for the firts time, the calendar displays correctly the things i want to; but if I navigate to another monts in the calendar, the event is is not fired, so the render of the things I want seems not to work. This si the code: Protected Sub RadCalendar1_DayRender(ByVal sender As Object, _ ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs) _ Handles RadCalendar1.DayRender Dim CurrentDate As DateTime = e.Day.[Date] If CurrentDate.Month <> RadCalendar1.FocusedDate.Month Then e.Cell.Text = "(" + CurrentDate.Day + ")" ElseIf e.Day.IsToday Then e.Cell.Style("background-color") = "Red" End If End Sub Thanks