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

RadAjax freezing controls

5 Answers 144 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
ewart
Top achievements
Rank 1
ewart asked on 10 Jul 2008, 11:01 AM
Hi guys, it's been a frustrating day with the latest promethesus build, 12 hours so far trying to solve a single issue, with no joy.  

I have a page which appears to function normally as long as I have disabled ajax - EnableAJAX="false".  As soon as ajax is enabled what happens is some comboboxes 'freeze' - I can click on them but can't get them to drop down.  IE6/FF2 do not produce any errors in the error console. 

Only the comboboxs involved in the 'ajaxification' freeze.  other combos on the page continue to work ok. read through all the docs I can find on this type of issue.


It's a user control loaded by a grid which in turn has been loaded dynamically, not a situation I can easily create a example project for.

I've none-the-less striped down the project and even tried a hacked up version that is just an aspx page with a grid loading, which loads the user control with the error on it... no joy, wits end on this one.

what could this be and how can I debug this?  script debugging is enabled in IE which is great with VS2008 but no errors are showing.  I can make the ajaxified combo boxes appear/disapear using the ajax command but they are always unclickable (not disabled) after the ajax postback.

at wits end, any ideas?

5 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 11 Jul 2008, 12:30 PM
Hello Ewart,

Could you please specify whether you are using a RadAjaxManager or a RadAjaxPanel and try replacing one with the other. Also pleas give us some more information on the Grid-Ajax-UserControl structure. You said the grid is loading the user control. Is the Ajax control ajaxifying both the grid and the user control or only the user control?

All the best,
Veli
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ewart
Top achievements
Rank 1
answered on 11 Jul 2008, 09:54 PM
Hi Velia, I've submitted a support ticket with a sample project that is close to the structure I need, so this thread can be deleted/closed. 

Regards
  Ewart.
0
Michael
Top achievements
Rank 1
answered on 08 Dec 2008, 11:39 AM
Hi Ewart

I have been having this same problem.

Was the issues resolved for you? If so, please could you point me to the solution?

Thanks.
Mike

0
ewart
Top achievements
Rank 1
answered on 08 Dec 2008, 07:58 PM
Hi Mike, yes they were, sort of!    I have to say Telerik were unbelievably helpful and the issue was tricky - it took another 7 days of support exchanges with sample projects to try and resolve this issue and some related ones.. but there is a solution (although I found it easier to rewrite about 30 user controls as aspx pages!)

Your best bet is to log a support issue if the following doesn't help:

First I was advised:
"Please replace RadAjaxManager with RadAjaxManagerProxy in your custom edit control. Also place RadAjaxManager on the main page where the definition of the grid is"

so, here is my sample code for a part of http://www.fitnessmentor.net .  this bit is in the user control:

code behind:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim manager As RadAjaxManager = RadAjaxManager.GetCurrent(Page)
        AddHandler manager.AjaxRequest, AddressOf rAjax_AjaxRequest

    End Sub

html source:
<asp:ScriptManagerProxy ID="ScriptManager" runat="server" />

<telerik:RadAjaxManagerProxy ID="rAjax" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rcActivityType">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rcExerciseType" />                
            </UpdatedControls>
        </telerik:AjaxSetting>        
         <telerik:AjaxSetting AjaxControlID="rdtStart">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rdtStart" />                
            </UpdatedControls>
        </telerik:AjaxSetting>                        
         
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

<telerik:RadScriptBlock runat="server" ID="RadCodeBlock1">
    <script type="text/javascript">
        function testAjaxRequest()
        {
            var mngr = $find('<%=RadAjaxManager.GetCurrent(Page).ClientID%>');
            mngr.ajaxRequest('asd');
        }
    </script>
</telerik:RadScriptBlock>

<asp:Button runat="server" ID="Button12" OnClientClick="testAjaxRequest();return false;" />



and in the main page hosting the user control I had the ajaxmanager (nb user control has proxy), with a grid that editing using a user control.


<asp:Button runat="server" ID="Button" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="gSchd">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="grdSchd" />                
            </UpdatedControls>
        </telerik:AjaxSetting>        
        
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="grdSchd" />                
            </UpdatedControls>
        </telerik:AjaxSetting>        
        
    </AjaxSettings>
    </telerik:RadAjaxManager>



hope that helps.  also make sure you have NO errors, e.g. javascript properties assigned incorrectly etc has I also found they can (sometimes) introduce weird results.  comment out stuff until you have a basic structure that works.

cheers
ewart

0
Michael
Top achievements
Rank 1
answered on 15 Dec 2008, 10:54 AM
Ewart,

Many thanks for your detailed reply!

Will see how I get on...

Regards,
Michael

Tags
Ajax
Asked by
ewart
Top achievements
Rank 1
Answers by
Veli
Telerik team
ewart
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Share this question
or