Hello telerik team,
the RadAjaxPanel loops under certain conditions and never stops until
clicking the browsers reload button.
I solved the problem, but other users might have the same problem some time.
Situation:
On the left side resides a country filter in a RadListBox and on the right side a
RadTabStrip with a RadMultipage. By selecting a country the tab reloads via the
RadAjaxManger and the AjaxPanel shows progress. Selecting another tab everything
works fine, but going back to the first tab and selecting another country, the AjaxPanel loops.
Reason:
I built some JavaScript around the RadListBox because i wanted multiple selection
without holding CTRL. I found the following script and it works fine:
The programm worked until i wanted to set the initial width of a RadSlider in percentage.
I added a couple of lines at the top of the Sys.Application.add_load method, but changing
the width of the slider in this method prevents the AjaxPanel from proper execution.
Solution:
I changed the way to set the initial witdth which is shown here How to set the Width/Height of RadSlider in percentages
and the AjaxPanel runs fine.
I hope my post is not too confusing, but changing a controls property in the Sys.Application.add_load
method might be not a good idea if you're working with the RadAjaxManager and the RadAjaxPanel.
Firstable i tried several ways to configure the RadAjaxManger but nothing prevented the
AjaxPanel from looping until i moved the code that sets the slider width to another method.
Greetings,
Hubert
the RadAjaxPanel loops under certain conditions and never stops until
clicking the browsers reload button.
I solved the problem, but other users might have the same problem some time.
Situation:
On the left side resides a country filter in a RadListBox and on the right side a
RadTabStrip with a RadMultipage. By selecting a country the tab reloads via the
RadAjaxManger and the AjaxPanel shows progress. Selecting another tab everything
works fine, but going back to the first tab and selecting another country, the AjaxPanel loops.
Reason:
I built some JavaScript around the RadListBox because i wanted multiple selection
without holding CTRL. I found the following script and it works fine:
Sys.Application.add_load(
function
() {
var
clb = findCountryListBox();
$telerik.$(
".rlbItem"
, clb._getGroupElement())
.click(
function
(event) {
event.stopImmediatePropagation();
event.ctrlKey =
true
;
clb._onClick(event);
});
});
The programm worked until i wanted to set the initial width of a RadSlider in percentage.
I added a couple of lines at the top of the Sys.Application.add_load method, but changing
the width of the slider in this method prevents the AjaxPanel from proper execution.
Sys.Application.add_load(
function
() {
var
clb = findCountryListBox();
var
ms = findMarginSlider();
x = $(
"#marginTextRow"
).width();
var
offsetWidth = x * 0.9;
ms.set_width(offsetWidth);
$telerik.$(
".rlbItem"
, clb._getGroupElement())
.click(
function
(event) {
event.stopImmediatePropagation();
event.ctrlKey =
true
;
clb._onClick(event);
});
});
Solution:
I changed the way to set the initial witdth which is shown here How to set the Width/Height of RadSlider in percentages
and the AjaxPanel runs fine.
I hope my post is not too confusing, but changing a controls property in the Sys.Application.add_load
method might be not a good idea if you're working with the RadAjaxManager and the RadAjaxPanel.
Firstable i tried several ways to configure the RadAjaxManger but nothing prevented the
AjaxPanel from looping until i moved the code that sets the slider width to another method.
Greetings,
Hubert