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

RadAjaxPanel loops under certain conditions

2 Answers 40 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Hubert
Top achievements
Rank 1
Hubert asked on 18 Aug 2012, 01:12 PM
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:

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

2 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 23 Aug 2012, 07:18 AM
Hello Hubert,

Thank you for sharing your findings with us. In case you consider this a problem with one of the two components, RadAjax or RadSlider, you could submit a support ticket and send us a runnable sample that reproduces the issue. We will then look into it and if there is an issue with either control, we will address it.

Regards,
Tsvetina
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Hubert
Top achievements
Rank 1
answered on 24 Aug 2012, 10:39 AM
Hello Tsvetina,

i built a sample project, but the problem does not appear in the sample.
If the problem appears I'll submit a support ticket.

Regards,
Hubert
Tags
Ajax
Asked by
Hubert
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Hubert
Top achievements
Rank 1
Share this question
or