0
我已成功獲取RadGrid以綁定到需要執行冗長查詢的大型DataTable。我的問題是,RadGrid將只顯示一個頁面,並且必須在用戶更改頁面時回發,並且我失去了我的DataTable,並且必須再次執行這個巨大的查詢。Telerik RadGrid綁定到大型數據表
我試圖Ajaxify RadGrid,但它仍然調用Page_Load,所以我不能保存我的DataTable。 (它應該這樣做嗎?)
我能做些什麼不同嗎?謝謝。
<telerik:RadAjaxManager runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rgReport">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgReport"
LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
</Scripts>
</telerik:RadScriptManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="False" Style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" EnableSkinTransparency="true" Transparency="0">
</telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="rgReport" runat="server" AllowPaging="True" PageSize="50"
AllowSorting="True" OnNeedDataSource="rgReport_NeedsDataSource" OnItemCommand="rgReport_ItemCommand"
AutoGenerateColumns="False" ShowStatusBar="True" CellSpacing="0"
GridLines="None">
<ClientSettings>
<ClientEvents OnRowMouseOver="CBGridRowMouseOver" OnRowMouseOut="CBGridRowMouseOut" />
</ClientSettings>
<MasterTableView Width="100%" DataKeyNames="submissionID" Name="Master">
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
Visible="True">
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
Visible="True">
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn SortExpression="customerID" HeaderText="customerID" HeaderButtonType="None"
DataField="customerID">
</telerik:GridBoundColumn>