The following UserControl, OpportunityList.ascx, using the Ajaxed RadGrid refreshes the whole page the first time in when you click the Next button in the paging navigation bar. Subsequently, it works properly refereshing only the control itself. Is there a fix for this?
[By the way we bind the data to the radGrid in the UserControl's Page_PreRender event, otherwise we get the error
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. If there is a better way to work around this error, please let us know.]
_______________________________________________________________________________________
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OpportunityList.ascx.cs" Inherits="Deloitte.Ca.OnePortal.UserControls.OpportunityList, Deloitte.Ca.OnePortal.UserControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=97bcd997dcc9fbb7" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Label ID="lblError" runat="server"></asp:Label>
<telerik:RadAjaxManager ID="radAjaxManager" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rgdOpportunityList">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgdOpportunityList" LoadingPanelID="radAjaxLoadingPanel" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="rgdOpportunityList" runat="server" Width="100%"
AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" PageSize="3"
GridLines="None" Skin="Windows7">
<MasterTableView OverrideDataSourceControlSorting="true">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
</MasterTableView>
</telerik:RadGrid>