【问题标题】:The given key was not present in the dictionary. System.Collections.Generic.KeyNotFoundException字典中不存在给定的键。 System.Collections.Generic.KeyNotFoundException
【发布时间】:2013-11-08 09:52:37
【问题描述】:

我在使用 Syncfusion Essential Grid 中的过滤时遇到 Key not found 异常。请查看代码并为我提供该问题的解决方案。

[KeyNotFoundException: The given key was not present in the dictionary.]
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +10715241
   Syncfusion.Shared.Mvc.LocalizationBase.GetLocalizedString(String key) +63
   Syncfusion.Mvc.Tools.DatePickerLocalizationString.get_closeText() +49
   Syncfusion.Mvc.Tools.jQueryDatePickerControl.OnInitScriptProcessed(String script) +1772
   Syncfusion.Mvc.Tools.jQueryUIControl.RegisterControlInitScript() +142
   Syncfusion.Mvc.Tools.jQueryUIControl.Render() +62




        <div class="sample-panel-margin" style="width: 100%;">
        @(Html.Syncfusion().Grid<EndDateResult>("Grid1")
      .ActionMode(ActionMode.JSON)
     .Datasource((IEnumerable<EndDateResult>)ViewData["data"])

【问题讨论】:

    标签: asp.net-mvc dictionary syncfusion


    【解决方案1】:

    此问题的原因是缺少日期选择器控件的资源文件。我们提供了英文的通用资源文件;您可以根据文化对其进行自定义并在您的示例中使用它。

    资源文件: http://www.syncfusion.com/downloads/support/directtrac/115429/CommonResource.en-GB.resx-2059309917.zip

    如果您需要任何进一步的帮助,请告诉我们。

    问候,

    阿卜杜勒·马丁 M

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-18
      • 2016-08-14
      相关资源
      最近更新 更多