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

RadGrid Ajaxed Postbacks the First Time

1 Answer 91 Views
Grid
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=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>

1 Answer, 1 is accepted

Sort by
0
Pavlina
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
http://www.telerik.com/help/aspnet-ajax/ajxusercontrols.html
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/ajxloadusercontrols.html

Greetings,
Pavlina
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.
Tags
Grid
Asked by
Spider Campos
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or