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

RadAjaxManagerProxy in WebUserControl issue

3 Answers 147 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
hkdave95
Top achievements
Rank 2
hkdave95 asked on 20 Nov 2007, 12:20 AM
Hi

I have a WebUserControl that is my edit form for a grid.

I have two list boxes with add and remove buttons.

When I select add a selected item moves from the left hand box to the right hand box.

This works. However, when the ajax call is finished the loading panel remains on the screen and any button that is pressed from that point onwards causes a Javascript error.

The error reads: Microsoft JScript runtime error: 'this.get_element()' is null or not an object.

The following fo rthe grid is on my main page ...
                <telerik:AjaxSetting AjaxControlID="rgStockMaintenance">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="rgStockMaintenance" LoadingPanelID="ralpDefault" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 

And the following is on my user control ...
<telerik:RadAjaxManagerProxy ID="ramprgStockMaintenance" runat="server" EnableViewState="true">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="btnAddCategory">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="lbxUnselectedCategories" LoadingPanelID="ralprgStockTransactions" /> 
                <telerik:AjaxUpdatedControl ControlID="lbxSelectedCategories" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="btnRemoveCategory">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="lbxUnselectedCategories" LoadingPanelID="ralprgStockTransactions" /> 
                <telerik:AjaxUpdatedControl ControlID="lbxSelectedCategories" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="rgStockTransactions">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rgStockTransactions" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
 

I need to Ajaxify the Grid and the controls am I doing it incorrectly ?

Kind REgards

David

3 Answers, 1 is accepted

Sort by
0
Jason Maronge
Top achievements
Rank 1
answered on 21 Nov 2007, 04:18 PM
David,

    Have you tried to EnableAjax on the grid itself?  It will ajaxify the grid edit usercontrol also.  I use many grids with edit controls and they all work fine.  If this doesn't work, please include more code so we can see what else may be causing it.

One other thing.  Turn off the ajax manager stuff for the grid when you turn on the grid ajax.

Jason
0
hkdave95
Top achievements
Rank 2
answered on 22 Nov 2007, 07:42 AM
Hi

EnableAjax=true on the grid itself is not an option.

It does not work on the page that I have setup. It breaks with a javascript error. I was advised by Telerik to turn this setting off.

I have to use RadAjaxManager for ajax with regards to the grid.

Kind Regards

David
0
Vladimir Milev
Telerik team
answered on 22 Nov 2007, 03:48 PM
Hi hkdave95,

We would really like to help out, but we will need some assistance from you. Can you please prepare a small runnable project illustrating this behavior? We want to be able to reproduce the error locally and debug it. This way we will be able to address the problem much quicker.

Looking forward to hearing from you.

Best wishes,
Vladimir Milev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
hkdave95
Top achievements
Rank 2
Answers by
Jason Maronge
Top achievements
Rank 1
hkdave95
Top achievements
Rank 2
Vladimir Milev
Telerik team
Share this question
or