Don't Paging at Telerik.Web.UI.dll for 2015.2.623.45

2 posts, 0 answers
  1. 小章
    小章 avatar
    9 posts
    Member since:
    Jan 2011

    Posted 01 Jul 2015 Link to this post

    Hi,

    My code can run  at 2015 Q1

    But it upgrade to 2015 Q2 after,it can not run,exception below

    Server Error in '/' Application.Value cannot be null.
    Parameter name: keyDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
     
    Exception Details: System.ArgumentNullException: Value cannot be null.
    Parameter name: key
     
    Source Error:
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
     
    [ArgumentNullException: Value cannot be null.
    Parameter name: key]
    System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +11032629
    System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) +12
    Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetLiteralTraceData(LiteralControl literal, TraceData& data) +47
    Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetTraceData(Object renderedObject) +259
    Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject) +35
    System.Web.UI.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject) +58
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +142
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.TableCell.RenderContents(HtmlTextWriter writer) +31
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.WebControls.Table.RenderContents(HtmlTextWriter writer) +9590815
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.TableCell.RenderContents(HtmlTextWriter writer) +31
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    Telerik.Web.UI.GridMultiRowItem.Render(HtmlTextWriter writer) +208
    Telerik.Web.UI.GridTFoot.Render(HtmlTextWriter writer) +4
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    Telerik.Web.UI.GridTable.RenderContents(HtmlTextWriter writer) +674
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    Telerik.Web.UI.GridTable.Render(HtmlTextWriter writer) +2931
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
    Telerik.Web.UI.GridTableViewBase.Render(HtmlTextWriter writer) +29
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    Telerik.Web.UI.RadCompositeDataBoundControl.RenderContents(HtmlTextWriter writer) +20
    Telerik.Web.UI.RadGrid.RenderContents(HtmlTextWriter writer) +56
    Telerik.Web.UI.GridBaseDataList.Render(HtmlTextWriter writer) +100
    Telerik.Web.UI.RadGrid.Render(HtmlTextWriter writer) +130
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    Telerik.Web.UI.RadAjaxPanel.RenderChildren(HtmlTextWriter writer) +157
    Telerik.Web.UI.RadAjaxPanel.RenderContents(HtmlTextWriter writer) +27
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    Telerik.Web.UI.RadAjaxPanel.Render(HtmlTextWriter writer) +33
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    Telerik.Web.UI.ControlRenderer.Render(HtmlTextWriter writer) +118
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.Control.Render(HtmlTextWriter writer) +10
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) +243
    System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) +38
    Telerik.Web.UI.OurUpdatePanel.Render(HtmlTextWriter writer) +201
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    Telerik.Web.UI.PreControlToAjaxify.Render(HtmlTextWriter writer) +114
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +102
    System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.Page.Render(HtmlTextWriter writer) +29
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +788
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.Page.Render(HtmlTextWriter writer) +29
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386

    @aspx

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="THS.ERP.MM.UI.Setup.WebForm2" %>
     
    <!DOCTYPE html>
     
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
         
            <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" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
                </Scripts>
            </telerik:RadScriptManager>
            <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
            </telerik:RadAjaxLoadingPanel>
            <div>
     
                <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                    <telerik:RadGrid ID="RadGrid1"
                        ShowGroupPanel="true"
                        AllowFilteringByColumn="true"
                        ShowStatusBar="true" runat="server"
                        AllowCustomPaging="true"
                        AllowPaging="true"
                        AllowSorting="true"
                        VirtualItemCount="100000"
                        OnNeedDataSource="RadGrid1_NeedDataSource">
                        <ClientSettings AllowDragToGroup="true">
                        </ClientSettings>
                        <MasterTableView TableLayout="Fixed"></MasterTableView>
                    </telerik:RadGrid>
                </telerik:RadAjaxPanel>
            </div>
        </form>
    </body>
    </html>

     

    @cs

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Telerik.Web.UI;
     
    namespace THS.ERP.MM.UI.Setup
    {
        public partial class WebForm2 : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
            }
     
            protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
            {
                MyBusinessObjectCollection MyBusinessObjectCollection1 = new MyBusinessObjectCollection();
                int startRowIndex = (ShouldApplySortFilterOrGroup()) ?
                    0 : RadGrid1.CurrentPageIndex * RadGrid1.PageSize;
     
                int maximumRows = (ShouldApplySortFilterOrGroup()) ?
                    MyBusinessObjectCollection1.SelectCount() : RadGrid1.PageSize;
     
                RadGrid1.AllowCustomPaging = !ShouldApplySortFilterOrGroup();
     
                RadGrid1.DataSource = MyBusinessObjectCollection1.Select(startRowIndex, maximumRows);
            }
     
            private bool isGrouping = false;
     
            public bool ShouldApplySortFilterOrGroup()
            {
                return RadGrid1.MasterTableView.FilterExpression != "" ||
                    (RadGrid1.MasterTableView.GroupByExpressions.Count > 0 || isGrouping) ||
                    RadGrid1.MasterTableView.SortExpressions.Count > 0;
            }
        }
    }

  2. 小章
    小章 avatar
    9 posts
    Member since:
    Jan 2011

    Posted 01 Jul 2015 in reply to 小章 Link to this post

    I get it

    http://www.telerik.com/forums/value-cannot-be-null-parameter-name-key-exception-is-thrown-after-q2-2015-release​

Back to Top