Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telerik RadAjaxManager still postbacks

I've the following code in my page:

<telerik:RadAjaxManager ID="ajax_manager" runat="server" 
    DefaultLoadingPanelID="ajax_panel">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="mygrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="mygrid" />
            </UpdatedControls>
        </telerik:AjaxSetting>            
    </AjaxSettings>
</telerik:RadAjaxManager>

The "mygrid" above is a RadGrid, with grouping and paging. The purpose is to expand the groups or change the page "without" postbacks (I think that should be the objective of the RadAjaxManager, anyway).

But after all, the components still postbacks... =(

Some hint of what could it be?

Regards!

like image 309
Kira Avatar asked Aug 13 '10 14:08

Kira


2 Answers

Try this one :

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting>
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="False"
    Skin="Web20" Style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;"
    EnableSkinTransparency="true" Transparency="0">
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
**YOUR GRID**
</telerik:RadAjaxPanel>
like image 164
arlen Avatar answered Sep 22 '22 16:09

arlen


Try setting this property

var grid = new RadGrid();
...
grid.MasterTableView.GroupLoadMode = GridGroupLoadMode.Client;
like image 22
olenak Avatar answered Sep 21 '22 16:09

olenak