我的页面中有以下代码:
<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>
上面的“mygrid”是RadGrid,具有分组和分页功能。目的是扩展组或更改页面“没有”回发(我认为这应该是RadAjaxManager的目标,无论如何)。
但毕竟,组件仍然会回发...... =(
有什么可能的暗示?
问候!
答案 0 :(得分:6)
试试这个:
<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>
答案 1 :(得分:1)
尝试设置此属性
var grid = new RadGrid();
...
grid.MasterTableView.GroupLoadMode = GridGroupLoadMode.Client;