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

[Solved] RadGird with ajax paging not work ,error

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Grapevine Grapevine
Top achievements
Rank 1
Grapevine Grapevine asked on 05 Oct 2009, 05:47 AM
sorry,i have poor english ,would like to read .

vs2010 ,ie8
aspx:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Admin.Master" AutoEventWireup="true" 
    CodeBehind="OperRecord.aspx.cs" Inherits="tc_xmc_web.Admin.OperRecord" Theme="Admin" %>  
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">  
    <script src="../Js/Calendar/WdatePicker.js" type="text/javascript"></script>  
</asp:Content>  
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <div class="divmenu_title">  
        操作记录  
    </div>  
    <div class="pdefault">  
<telerik:RadAjaxManager runat="server">  
        <AjaxSettings>  
            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
        </AjaxSettings>  
    </telerik:RadAjaxManager>  
 
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource_OperationRecord_SP" 
            GridLines="None" AllowPaging="True" PageSize="2" PagerStyle-AlwaysVisible="false">  
            <MasterTableView DataSourceID="SqlDataSource_OperationRecord_SP">  
                <Columns>  
                    <telerik:GridBoundColumn DataField="Operation" UniqueName="oper">  
                    </telerik:GridBoundColumn>  
                </Columns>  
            </MasterTableView>  
        </telerik:RadGrid>  
      </div>  
<asp:SqlDataSource ID="SqlDataSource_OperationRecord_SP" runat="server" ConnectionString="<%$ ConnectionStrings:tc_xmc_dbConnectionString %>" 
</asp:SqlDataSource>  
</asp:Content> 

web.config  (i doubt there are problems ) :
<?xml version="1.0"?>  
<configuration>  
 
 
 
  <configSections>  
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>  
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
        </sectionGroup>  
      </sectionGroup>  
    </sectionGroup>  
  </configSections>  
 
 
  <appSettings/>  
  <connectionStrings>  
    <add name="tc_xmc_dbConnectionString" connectionString="Data Source=192.168.23.4;Initial Catalog=tc_xmc_db;User ID=sa" providerName="System.Data.SqlClient"/>  
    <add name="NorthwindConnectionString" connectionString="Data Source=192.168.23.16;Initial Catalog=Northwind;User ID=sa;PassWord=123789" providerName="System.Data.SqlClient"/>  
  </connectionStrings>  
 
  <system.web>  
    <compilation debug="true" targetFrameworkMoniker=".NETFramework,Version=v4.0">  
      <assemblies>  
        <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
        <add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
        <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
 
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>  
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
        <add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>  
      </assemblies>  
 
    </compilation>  
    <!--  
            The <authentication> section enables configuration   
            of the security authentication mode used by   
            ASP.NET to identify an incoming user.   
        -->  
    <authentication mode="Windows"/>  
    <!--  
            The <customErrors> section enables configuration   
            of what to do if/when an unhandled error occurs   
            during the execution of a request. Specifically,   
            it enables developers to configure html error pages   
            to be displayed in place of a error stack trace.  
 
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">  
            <error statusCode="403" redirect="NoAccess.htm" />  
            <error statusCode="404" redirect="FileNotFound.htm" />  
        </customErrors>  
        -->  
 
 
    <pages>  
      <controls>  
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add tagPrefix="AjaxControlToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=3.0.30512.29188, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>  
        <!--Telerik-->  
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>  
        <!--Telerik-->  
 
      </controls>  
    </pages>  
 
    <httpHandlers>  
      <remove verb="*" path="*.asmx"/>  
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
      <!--Telerik-->  
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>  
      <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>  
      <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>  
      <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>  
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>  
      <!--Telerik-->  
    </httpHandlers>  
    <httpModules>  
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <!--Telerik-->  
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>  
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>  
      <!--Telerik-->  
    </httpModules>  
 
  </system.web>  
 
 
  <system.codedom>  
    <compilers>  
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">  
        <providerOption name="CompilerVersion" value="v4.0"/>  
        <providerOption name="WarnAsError" value="false"/>  
      </compiler>  
    </compilers>  
  </system.codedom>  
 
  <!--   
        The system.webServer section is required for running ASP.NET AJAX under Internet  
        Information Services 7.0.  It is not necessary for previous version of IIS.  
    -->  
  <system.webServer>  
    <validation validateIntegratedModeConfiguration="false"/>  
    <modules>  
      <remove name="ScriptModule"/>  
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
    </modules>  
    <handlers>  
      <remove name="WebServiceHandlerFactory-Integrated"/>  
      <remove name="ScriptHandlerFactory"/>  
      <remove name="ScriptHandlerFactoryAppServices"/>  
      <remove name="ScriptResource"/>  
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
    </handlers>  
  </system.webServer>  
 
 
</configuration> 

please help  ,thanks.

-------------

without ajax runing ok!

why?

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 07 Oct 2009, 05:22 PM
Hello Grapevine,

I followed your scenario in order to replicate the issue but to no avail. Attached to this message is a working project which demonstrates the desired functionality. Give it a try and let me know what is the difference in your scenario.

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Grapevine Grapevine
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or