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

RadGrid Ajaxed Postbacks the First Time

1 Answer 91 Views
This is a migrated thread and some comments may be shown as answers.
Spider Campos
Top achievements
Rank 1
Spider Campos asked on 30 Apr 2010, 09:29 PM

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=, Culture=neutral, PublicKeyToken=97bcd997dcc9fbb7" %>
<%@ Register Assembly="System.Web.Extensions, Version=, 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">
    <telerik:AjaxSetting AjaxControlID="rgdOpportunityList">
        <telerik:AjaxUpdatedControl ControlID="rgdOpportunityList" LoadingPanelID="radAjaxLoadingPanel" />
<telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel" runat="server" Skin="Default">

<telerik:RadGrid ID="rgdOpportunityList" runat="server" Width="100%"
AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" PageSize="3"
GridLines="None" Skin="Windows7">
  <MasterTableView OverrideDataSourceControlSorting="true">
      <HeaderStyle Width="20px"></HeaderStyle>
      <HeaderStyle Width="20px"></HeaderStyle>

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 05 May 2010, 10:40 AM
Hello Spider,

Please, refer to the online resources below, for more information about RadAjax with UserControls

the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Asked by
Spider Campos
Top achievements
Rank 1
Answers by
Telerik team
Share this question