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

The given key was not present in the dictionary

19 Answers 1356 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 21 Jul 2011, 09:34 PM

Has anyone encountered this error with RadGrid (2009Q3)?

[KeyNotFoundException: The given key was not present in the dictionary.]

System.ThrowHelper.ThrowKeyNotFoundException() +28

System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7456108

Telerik.Web.UI.RadGrid.LoadClientState(Dictionary`2 clientState) +138

Telerik.Web.UI.RadCompositeDataBoundControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +123

Telerik.Web.UI.RadCompositeDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13

System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +693

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743

19 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 22 Jul 2011, 09:58 AM
Hi Greg,

We are not sure what the exact cause of this error could be, however Q3 2009 is quite an old version of our ASP.NET AJAX controls. Can you migrate to a most recent release, Q2 2011 for example, to see whether this eliminates the exception?

Best regards,
Sebastian
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Greg
Top achievements
Rank 1
answered on 22 Jul 2011, 01:26 PM
Hi, and thank you for the reply.  Unfortunately, unless migrating to the latest version is free, it is not an option for me.  I do not have any influence on the purchasing decisions here.
0
Sebastian
Telerik team
answered on 22 Jul 2011, 03:03 PM
Hello Greg,

You can try the Q3 2009 SP2 version or the Q2 2011 trial version of the suite to see whether the error vanishes (upgrade instructions can be found here).

Kind regards,
Sebastian
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
John Swenson
Top achievements
Rank 1
answered on 28 Nov 2011, 11:39 AM
I have the same error using Q3 2011
I have a grid with this fileds (among the others):

<telerik:GridCalculatedColumn Aggregate="Sum" FilterControlWidth="50px"
                              DataFields="Field1,Field2,Field3,Field4"
                              DataFormatString="{0:C}" Expression="{0}+{1}+{2}+{3}"
                              FooterAggregateFormatString="{0:C}" HeaderText="Total 1"
                              UniqueName="Total1" DataType="System.Decimal">
    <FooterStyle HorizontalAlign="Right" Font-Bold="True" Font-Size="Small"
                 Wrap="True" ForeColor="#3333FF"/>
    <HeaderStyle Width="90px" />
    <ItemStyle HorizontalAlign="Right" Wrap="False" />
</telerik:GridCalculatedColumn>
<telerik:GridCalculatedColumn Aggregate="Sum" FilterControlWidth="50px"
                              DataFields="Field1,Field2,Field3"
                              DataFormatString="{0:C}" Expression="{0}+{1}+{2}"
                              FooterAggregateFormatString="{0:C}" HeaderText="Total2"
                              UniqueName="Total2" DataType="System.Decimal">
    <FooterStyle HorizontalAlign="Right" Font-Bold="True" Font-Size="Small"
                 Wrap="True" ForeColor="#3333FF"/>
    <HeaderStyle Width="90px" />
    <ItemStyle HorizontalAlign="Right" Wrap="False" />
</telerik:GridCalculatedColumn>
<telerik:GridBoundColumn DataField="Field1" DataType="System.Decimal"
                         HeaderText="Field1" UniqueName="Field1"
                         DataFormatString="{0:C}" Aggregate="Sum"
                         FooterAggregateFormatString="{0:C}" FilterControlWidth="50px">
    <FooterStyle HorizontalAlign="Right" Font-Bold="True" Font-Size="Small"
                 Wrap="True" ForeColor="#3333FF"/>
    <HeaderStyle Width="90px" />
    <ItemStyle HorizontalAlign="Right" Wrap="False" />
</telerik:GridBoundColumn>

If I comment out the first two columns, I get another error:
System.Data.EvaluateException: Unable to find column [Field1].

If I comment out all three columns, I get no errors at all.
0
Radoslav
Telerik team
answered on 30 Nov 2011, 11:58 AM
Hi John,

I tried to reproduce the described issue, but to no avail. I am sending you a simple example, based on your code snippet. Please check it out and let me know what differs in your case.

Looking forward for your reply.

Kind regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
John Swenson
Top achievements
Rank 1
answered on 06 Dec 2011, 12:29 PM
Finally, I was able to reproduce my problems.
Here is the code for Default.aspx taken from your example and modified by me.
I've setted some properties to reflect the RadGrid on my page.

The key seems to be "EnableLinqExpressions": if you set it to "True" you get this exception:
KeyNotFoundException: System.Collections.Generic.Dictionary`2.get_Item(TKey key) +9619597
   Telerik.Web.UI.GridCalculatedColumn.cell_DataBinding(Object sender, EventArgs e) +476

set it to "False" to get this exception:
HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contains a property named 'Total1Result'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +8805293
.
This is the page markup:
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <telerik:RadGrid runat="server" ShowFooter="True" ID="RadGrid1"
                     AutoGenerateColumns="False" EnableLinqExpressions="False"
        AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"
           AllowCustomPaging="True"
        CellSpacing="0" Culture="it-IT" GridLines="None" Skin="Office2007">
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
        <MasterTableView>
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
            <Columns>
                <telerik:GridCalculatedColumn Aggregate="Sum" FilterControlWidth="50px" DataFields="Field1,Field2,Field3,Field4"
                    DataFormatString="{0:C}" Expression="{0}+{1}+{2}+{3}" FooterAggregateFormatString="{0:C}"
                    HeaderText="Total 1" UniqueName="Total1" DataType="System.Decimal">
                    <FooterStyle HorizontalAlign="Right" Font-Bold="True" Font-Size="Small" Wrap="True"
                        ForeColor="#3333FF" />
                    <HeaderStyle Width="90px" />
                    <ItemStyle HorizontalAlign="Right" Wrap="False" />
                </telerik:GridCalculatedColumn>
                <telerik:GridCalculatedColumn Aggregate="Sum" FilterControlWidth="50px" DataFields="Field1,Field2,Field3"
                    DataFormatString="{0:C}" Expression="{0}+{1}+{2}" FooterAggregateFormatString="{0:C}"
                    HeaderText="Total2" UniqueName="Total2" DataType="System.Decimal">
                    <FooterStyle HorizontalAlign="Right" Font-Bold="True" Font-Size="Small" Wrap="True"
                        ForeColor="#3333FF" />
                    <HeaderStyle Width="90px" />
                    <ItemStyle HorizontalAlign="Right" Wrap="False" />
                </telerik:GridCalculatedColumn>
                <telerik:GridBoundColumn DataField="Field1" DataType="System.Decimal" HeaderText="Field1"
                    UniqueName="Field1" DataFormatString="{0:C}" Aggregate="Sum" FooterAggregateFormatString="{0:C}"
                    FilterControlWidth="50px">
                    <FooterStyle HorizontalAlign="Right" Font-Bold="True" Font-Size="Small" Wrap="True"
                        ForeColor="#3333FF" />
                    <HeaderStyle Width="90px" />
                    <ItemStyle HorizontalAlign="Right" Wrap="False" />
                </telerik:GridBoundColumn>
            </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
        </MasterTableView>
 
<FilterMenu EnableImageSprites="False">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</FilterMenu>
 
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
<WebServiceSettings>
<ODataSettings InitialContainerName=""></ODataSettings>
</WebServiceSettings>
</HeaderContextMenu>
    </telerik:RadGrid>
</asp:Content>

I use custom pagination and NHibernate throughout my project.
The property "EnableLinqExpressions" is False in all of my RadGrids. I have no problem at all with Q2 2011 SP1.
Thank you for the help.

UPDATE: If you set "AllowFilteringByColumn" to "False" you get no error.
0
Radoslav
Telerik team
answered on 08 Dec 2011, 04:05 PM
Hello John,

Indeed I verified the described issue exists in the current version of RadGrid. I forwarded it to our developers and they will start working on the resolution of this issue. Please excuse us for this temporary inconvenience. Additionally as a small token of gratitude for your involvement I have updated your Telerik points.

I will be glad to assist you further.

Best wishes,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
John Swenson
Top achievements
Rank 1
answered on 09 Dec 2011, 06:57 PM
Hello Radoslav,

thank you for your help and for the Telerik points ;-)
Please let me know when this problem gets fixed.
0
Radoslav
Telerik team
answered on 14 Dec 2011, 08:35 AM
Hi John,

Our developers fixed the described issue and the fix will be available in the next hotfix which will be available in the middle of the next week.
On the following links you could find instructions how to use the hotfix dlls:
http://www.telerik.com/help/aspnet-ajax/introduction-using-hotfix.html

If you need further assistance, do not hesitate to contact us again.

Regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Curtis
Top achievements
Rank 1
answered on 14 Jun 2012, 04:07 PM
Radoslav,

I am having this exact same issue and just installed the latest release of the tools from June 11th, 2012 and this error still occurs.

What is the resolution?

0
Radoslav
Telerik team
answered on 19 Jun 2012, 08:10 AM
Hello Curtis,

I tried to reproduce the described issue with the latest version of our controls (2012.2.607) but to no avail. I am sending you a simple example. Please check it out and let me know what differs in your case. Looking forward for your reply.

Regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Top Coder
Top achievements
Rank 1
answered on 14 Sep 2012, 07:51 PM
I just installed the latest release 2012 09 

Now my event logs are flooded with this error. 
0
Radoslav
Telerik team
answered on 19 Sep 2012, 08:25 AM
Hello Henry ,

I am sending you a simple example which uses the latest version of our controls (Q2 2012 SP2). Please check it out and let me know what differs in your case.

Looking forward for your reply.

Greetings,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Informat
Top achievements
Rank 1
answered on 10 Dec 2012, 07:12 AM
Dear,

Also I am having constantly this error with the latest release of telerik.

at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Telerik.Web.UI.RadButton.LoadPostData(String postDataKey, NameValueCollection postCollection) at Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)




Any idea how this can resolved ?

Regards,
N.
0
Radoslav
Telerik team
answered on 12 Dec 2012, 07:47 AM
Hello Nick,

The described issue is very strange. We have not encountered it so far and we are not sure what could be the reason for experiencing the problem. Could you please post your aspx page markup with the related code behind or send us a small runnable example where the problem could be reproduced. Thus we will be able to get more information about your scenario and provide you more to the point answer.

Looking forward for your reply.

All the best,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Mehmet
Top achievements
Rank 1
answered on 01 Apr 2015, 05:46 AM
I am having the same issue with the excel export function with my radgrid.

Could you please advise me?

here is the radgrid :
<telerik:RadGrid AutoGenerateColumns="False" ID="RadGrid4" AllowFilteringByColumn="True" AllowSorting="True" runat="server" OnItemCommand="RadGrid4_ItemCommand" OnItemCreated="RadGrid4_ItemCreated" EnableLinqExpressions="false" HtmlEncode="true" OnNeedDataSource="RadGrid4_NeedDataSource" GroupingSettings-RetainGroupFootersVisibility="true"
                        ShowGroupPanel="True" CellSpacing="-1" GridLines="Both" Skin="Office2010Silver" EnableViewState="true" Width="100%">
                        <PagerStyle Mode="NextPrevAndNumeric" />
                        <GroupingSettings CaseSensitive="false" />
                        <ClientSettings AllowKeyboardNavigation="true">
                        </ClientSettings>
                        <ExportSettings OpenInNewWindow="true" FileName="i-Dispatch Job Part Used Report" ExportOnlyData="true">
                            <Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin="45mm"
                                BorderStyle="Medium" BorderColor="#666666" PaperSize="A4">
                            </Pdf>
                        </ExportSettings>
                        <MasterTableView Width="100%" DataKeyNames="JobID" HierarchyLoadMode="ServerOnDemand" ShowGroupFooter="true" AllowMultiColumnSorting="true">
                            <Columns>
                                <telerik:GridMaskedColumn DataField="JobID" HeaderText="JobID#"
                                    FilterControlWidth="50px" AutoPostBackOnFilter="false" CurrentFilterFunction="EqualTo"
                                    FilterDelay="2000" ShowFilterIcon="false" Mask="#####" GroupByExpression="JobID Group By JobID">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text=""></ModelErrorMessage>
                                    </ColumnValidationSettings>
                                </telerik:GridMaskedColumn>
                                <telerik:GridBoundColumn DataField="JobTitle" FilterControlAltText="Filter JobTitle column" HeaderText="Job Title" SortExpression="JobTitle" UniqueName="JobTitle">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="JobBookedDate" PickerType="DatePicker" EnableTimeIndependentFiltering="true"
                                    DataFormatString="{0:dd/MM/yyyy HH:mm }" DataType="System.DateTime" FilterControlAltText="Filter JobBookedDate column" HeaderText="Job Booked Date" SortExpression="JobBookedDate" UniqueName="JobBookedDate">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridDateTimeColumn>
                                <telerik:GridTemplateColumn DataField="AssignedStaffID" HeaderText="Mobile Staff" UniqueName="AssignedStaffID"
                                    HeaderStyle-Width="200px" SortExpression="AssignedStaffID">
                                    <FilterTemplate>
                                        <telerik:RadComboBox ID="comboStaff" DataTextField="StaffName"
                                            DataValueField="StaffID" Height="100px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("AssignedStaffID").CurrentFilterValue %>'
                                            runat="server" OnClientSelectedIndexChanged="StaffIndexChanged">
                                            <Items>
                                                <telerik:RadComboBoxItem Text="All" />
                                            </Items>
                                        </telerik:RadComboBox>
                                        <telerik:RadScriptBlock ID="RadScriptBlock10" runat="server">
                                            <script type="text/javascript">
                                                function StaffIndexChanged(sender, args) {
                                                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                                    tableView.filter("AssignedStaffID", args.get_item().get_value(), "EqualTo");
                                                }
                                            </script>
                                        </telerik:RadScriptBlock>
                                    </FilterTemplate>
                                    <ItemTemplate>
                                        <%# Eval("Staff") %>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn DataField="CreatedBy" HeaderText="Added By" UniqueName="CreatedBy"
                                    HeaderStyle-Width="200px" SortExpression="CreatedBy">
                                    <FilterTemplate>
                                        <telerik:RadComboBox ID="comboAdded" DataTextField="StaffName"
                                            DataValueField="StaffID" Height="100px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("CreatedBy").CurrentFilterValue %>'
                                            runat="server" OnClientSelectedIndexChanged="AddedByIndexChanged">
                                            <Items>
                                                <telerik:RadComboBoxItem Text="All" />
                                            </Items>
                                        </telerik:RadComboBox>
                                        <telerik:RadScriptBlock ID="RadScriptBlock11" runat="server">
                                            <script type="text/javascript">
                                                function AddedByIndexChanged(sender, args) {
                                                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                                    tableView.filter("CreatedBy", args.get_item().get_value(), "EqualTo");
                                                }
                                            </script>
                                        </telerik:RadScriptBlock>
                                    </FilterTemplate>
                                    <ItemTemplate>
                                        <%# Eval("AddedBy") %>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="PartCode" FilterControlAltText="Filter PartCode column" HeaderText="Part Code" SortExpression="PartCode" UniqueName="PartCode">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="PartName" Aggregate="Count" FooterText="Total parts: " FilterControlAltText="Filter PartName column" HeaderText="Part Name" SortExpression="PartName" UniqueName="Part Name">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>
 
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="PartPurchasePrice" DataType="System.Double" NumericType="Currency"
                                    HeaderText="Purchase Price" SortExpression="PartPurchasePrice" UniqueName="PartPurchasePrice" Aggregate="Sum" FooterText="Total : " FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="PartSalePrice" DataType="System.Double" NumericType="Currency"
                                    HeaderText="Recommended Sale Price" SortExpression="PartSalePrice" UniqueName="PartSalePrice" FooterText="Total: " Aggregate="Sum" FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="JobPartUnitPrice" DataType="System.Double" NumericType="Currency"
                                    HeaderText="Sale Price Charged" SortExpression="JobPartUnitPrice" UniqueName="JobPartUnitPrice" Aggregate="Sum" FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataField="JobPartQuantity" DataType="System.Double"
                                    HeaderText="Quantity" SortExpression="JobPartQuantity" UniqueName="JobPartQuantity" Aggregate="Sum" FooterAggregateFormatString="{0:n}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="JobPartGST" DataType="System.Double" NumericType="Currency"
                                    HeaderText="GST Charged" SortExpression="JobPartGST" UniqueName="JobPartGST" Aggregate="Sum" FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="JobPartTotal" DataType="System.Double" NumericType="Currency"
                                    HeaderText="Total" SortExpression="JobPartTotal" UniqueName="JobPartTotal" Aggregate="Sum" FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridCalculatedColumn HeaderText="Gross Margin" UniqueName="GrossMargin" DataType="System.Double" DataFormatString="{0:$###,##0.00}"
                                    DataFields="JobPartUnitPrice, PartPurchasePrice" Expression="{0}-{1}" FooterText="Total : "
                                    Aggregate="Sum">
                                </telerik:GridCalculatedColumn>
                                   <telerik:GridCalculatedColumn HeaderText="Gross Margin Percentage" UniqueName="GrossMarginPercentage" DataType="System.Double" DataFormatString="{0:P}"
                                    DataFields="JobPartUnitPrice, PartPurchasePrice" Expression="iif({0}=0,0,iif(({0}-{1})=0,0,(({0}-{1})/{0})*100))" FooterText="Total : "
                                    Aggregate="Sum">
                                </telerik:GridCalculatedColumn>                               
                            </Columns>
                            <GroupByExpressions>
                                <telerik:GridGroupByExpression>
                                    <GroupByFields>
                                        <telerik:GridGroupByField FieldName="JobID"></telerik:GridGroupByField>
                                    </GroupByFields>
                                    <SelectFields>
                                        <telerik:GridGroupByField FieldName="JobID" HeaderText="JobID#"></telerik:GridGroupByField>
                                    </SelectFields>
                                </telerik:GridGroupByExpression>
                            </GroupByExpressions>
                        </MasterTableView>
                        <ClientSettings AllowDragToGroup="true">
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        </ClientSettings>
                        <GroupingSettings ShowUnGroupButton="true"></GroupingSettings>
                    </telerik:RadGrid>
0
Radoslav
Telerik team
answered on 03 Apr 2015, 12:43 PM
Hello Mehmet,

I tried to reproduce the problem on my side but to no avail. I am sending you a simple example based on your code. Please check it out and let me know what differs in your case.

Looking forward for your reply.

Regards,
Radoslav
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Kevin
Top achievements
Rank 1
answered on 27 May 2020, 07:02 AM
Has this been fixed?
I'm using Telerik UI for AJAX Asp.NET version 2019.3.1023.45 and I'm facing same issue.
It's so strange as it's happen random, I can't found a step to reproduce that, just try to take much post back action on a page and wait for it t happen
 
0
Doncho
Telerik team
answered on 29 May 2020, 04:32 PM

Hi Kevin,

We were never able to replicate the issue locally therefore we cannot define the reason for it or troubleshoot it.

As the issue is not constantly occurring, I would suggest the following approach to narrow down the issue.
You can open the DevTools(F12) of the browser and monitor the Network tab. Once the exception is thrown, check the failed request to the server. You might find useful to check out the Inspect Network Requests section of the Improve Your Debugging Skills with Chrome DevTools blog post.

Once you have the failed request, inspect the Request Headers, and look for the RadGrid's client-statе value. Then you can do the same with a working request and get a correct client-state. Comparing both Client states should show us what causes the issue.

If the issues persist, you can share simple runnable project as an attachment to an official support ticket along with the correct and the faulty client states. That would allow us to investigate locally your exact scenario and provide more accurate and specific suggestions.

Kind regards,
Doncho
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Reinier
Top achievements
Rank 1
commented on 11 Mar 2022, 10:12 AM

I have the same issue here, but only in Firefox.

Working with Telerik to try and discover why.

Frank
Top achievements
Rank 1
commented on 17 May 2023, 08:06 AM

The same thing happens here... only when using Firefox as web browser.
Doncho
Telerik team
commented on 22 May 2023, 07:08 AM

Hi Frank and Reiner,

As you are facing the issue only in Firefox, it most likely is a result of some specificity of that particular browser. Firefox is quite a popular one and we would do our best to eliminate the issue. For that, we need to have a runnable sample project that will help us experience the problem ourselves.

We have researched this error a couple of times so far but with no success mainly because we are not able to encounter it ourselves. We will highly appreciate it if you can help us face the same problem by sharing a minimal setup with no external dependencies that lead to the error.

Frank
Top achievements
Rank 1
commented on 22 May 2023, 07:26 AM

Hi Doncho,

we are also looking for any clue to reproduce the error.

If we have any further information, we will of course share it here.

Eine Ausnahme vom Typ "System.Web.HttpUnhandledException" wurde ausgelöst.
System.Web.HttpUnhandledException (0x80004005): Eine Ausnahme vom Typ "System.Web.HttpUnhandledException" wurde ausgelöst. ---> System.Collections.Generic.KeyNotFoundException: Der angegebene Schlüssel war nicht im Wörterbuch angegeben.
   bei System.ThrowHelper.ThrowKeyNotFoundException()
   bei System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   bei Telerik.Web.UI.RadGrid.LoadClientState(Dictionary`2 clientState)
   bei System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   bei System.Web.UI.Page.HandleError(Exception e)
   bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   bei System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   bei System.Web.UI.Page.ProcessRequest()
   bei System.Web.UI.Page.ProcessRequest(HttpContext context)
   bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   bei System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Doncho
Telerik team
commented on 22 May 2023, 04:37 PM

Thank you for sharing the stack trace, Frank!

It shows the same issue as the one in the initial message in this thread. Unfortunately, the stack trace is not providing enough information for the effective troubleshooting of the issue.

Have you tried monitoring the client state of the RadGrid and comparing it in a failing request with a successful one as suggested in my answer above in this thread?

Frank
Top achievements
Rank 1
commented on 23 May 2023, 07:32 AM

Hi Doncho

As you can see from the stack trace, the code that accesses the dictionary is not part of our domain. The error also does not occur specifically with a user whom we could ask to open the DevTools. The error occurs on different pages where we use the grid. In the development and staging environment, the error has not yet been noticed, although we are monitoring all errors. However, these environments are obviously not used as frequently as the production environment.

In the opinion of our development team, the cause of the error needs to be investigated by Telerik.

Due to the age of the forum entry, we assume that a special configuration is causing the error.

Finding this configuration requires a time-consuming reconstruction of the application, possibly even of the web farm.

It may be helpful to give a more detailed description of the error, stating which key is not available. Then we could extend our applications code to check in which state the key is lost.

Doncho
Telerik team
commented on 25 May 2023, 05:42 PM

Hi Frank,

Thank you for your willingness to help in troubleshooting this.

I understand that knowing the missing key would give a direction for further investigation. Yet, at the moment I am not able to identify it without being able to reproduce the error.

I have double-checked the code snippets and samples shared earlier in this thread but none of these led me to the problem.

Could you please share the markup declaration of the RadGrid and the relevant code-behind logic in your case, so I can review that one as well? Hopefully, I will find a pattern or at least a common configuration among all cases reported so far that could help us replicate and investigate the problem further.

Tags
Grid
Asked by
Greg
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Greg
Top achievements
Rank 1
John Swenson
Top achievements
Rank 1
Radoslav
Telerik team
Curtis
Top achievements
Rank 1
Top Coder
Top achievements
Rank 1
Informat
Top achievements
Rank 1
Mehmet
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Doncho
Telerik team
Share this question
or