RadAjaxManagerProxy in WebUserControl issue

4 posts, 0 answers
  1. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 19 Nov 2007 Link to this post

    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
  2. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 21 Nov 2007 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 22 Nov 2007 Link to this post

    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
  5. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 22 Nov 2007 Link to this post

    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
Back to Top