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

Ajax postback not working in dynamically loaded grid

1 Answer 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mustapha
Top achievements
Rank 1
Mustapha asked on 17 Jan 2012, 09:04 PM
Hello,

I am using a grid that is included in a User Control and dynamically loaded to a RadTabStrip.

The problem I am having is that I am not able to process the ajax postback from grid in the code behind event handler RaisePostBackEvent.

Below is the RadAjaxManager code on the page hosting the RadStrip:

            <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
                <ClientEvents />
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                            <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="18_userControl_RadGridDiscounts" LoadingPanelID="LoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>                
            </telerik:RadAjaxManager>

This is the call to PostBack the grid from javascript:

__doPostBack(gridid, itemIndex);

Do I need to change the setting of RadAjaxManager?

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 19 Jan 2012, 05:33 PM
Hello Mustapha,

You could try calling ajaxRequest method of the RadAjaxManager to make a request. You could go through the help article below for more in depth information on how to use the ajaxRequest and ajaxRequestWithTarget methods. Note that there is no obvious issue with the RadAjaxManager declaration.

Regards,
Antonio Stoilkov
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
Tags
Grid
Asked by
Mustapha
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or