﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Error opening grid context menu if language XML hasn’t fully loaded yet</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-opening-grid-context-menu-if-language-XML-hasnt-fully-loaded-yet/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Error opening grid context menu if language XML hasn’t fully loaded yet</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-opening-grid-context-menu-if-language-XML-hasnt-fully-loaded-yet/</link><pubDate>Tue, 20 Dec 2016 15:24:12 GMT</pubDate><dc:creator>mdearman@libera.com</dc:creator><description>&lt;p&gt;We aren't customizing the localization files. &amp;nbsp;Yes, the root cause seems to be that if the internal GetString call returns null/undefined, then other functions will fail. &amp;nbsp;From what I could tell, this issue can occur if the grid's context menu opens before the default.xml localization file is fully loaded. &amp;nbsp;So it doesn't have the string to use yet.&lt;/p&gt;&lt;p&gt;Mike&lt;/p&gt;</description></item><item><title>Error opening grid context menu if language XML hasn’t fully loaded yet</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-opening-grid-context-menu-if-language-XML-hasnt-fully-loaded-yet/</link><pubDate>Mon, 19 Dec 2016 02:35:51 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;From the screenshot, the error happen on &lt;strong&gt;GetTranslatedString&lt;/strong&gt; function of &lt;strong&gt;WebGrid_Context.js&lt;/strong&gt;. One of the events that trigger this function is: when AutoFilterSuggestion is enabled (WebGrid - LayoutSettings - AutoFilterSuggestion) and user right-click on WebGrid column header.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The error happen because h is undefined or null. Since h is the parameter passed by following expression (from GetBasicFilterColumns): d.GetString(b + f[e].Name.substring(3))&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The above should expression should return something like: "Equals {0}".&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;In my opinion, the error might happen if ISGetObject("WebGrid1").GetString("ContextMenu/FilterSuggest/ET") returns undefine or null.&lt;br&gt;*Please note that the "ET" in string "ContextMenu/FilterSuggest/ET" might vary with: ET, NET, Contain, NotContain, LTET, GTET, and so on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;If you are using custom localization for your WebGrid, please ensure that the xml node under "FilterSuggest" is not left empty/blank.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&amp;lt;Localization culture="default" description="Default Language"&amp;gt;
  ...
  &amp;lt;ContextMenu&amp;gt;
    ...
    &amp;lt;FilterSuggest&amp;gt;
      &amp;lt;ET&amp;gt;Equals {0}&amp;lt;/ET&amp;gt;
      &amp;lt;NET&amp;gt;Does Not Equal {0}&amp;lt;/NET&amp;gt;
      &amp;lt;Contain&amp;gt;Contains {0}&amp;lt;/Contain&amp;gt;
      &amp;lt;NotContain&amp;gt;Does Not Contain {0}&amp;lt;/NotContain&amp;gt;
      &amp;lt;LTET&amp;gt;Less Than or Equal To {0}&amp;lt;/LTET&amp;gt;
      &amp;lt;GTET&amp;gt;Greater Than or Equal To {0}&amp;lt;/GTET&amp;gt;
      &amp;lt;OnBefore&amp;gt;On or Before {0}&amp;lt;/OnBefore&amp;gt;
      &amp;lt;OnAfter&amp;gt;On or After {0}&amp;lt;/OnAfter&amp;gt;
      &amp;lt;Checked&amp;gt;Is Checked (True)&amp;lt;/Checked&amp;gt;
      &amp;lt;NotChecked&amp;gt;Is Not Checked (False)&amp;lt;/NotChecked&amp;gt;
      &amp;lt;Tomorrow&amp;gt;Tomorrow&amp;lt;/Tomorrow&amp;gt;
      &amp;lt;Today&amp;gt;Today&amp;lt;/Today&amp;gt;
      &amp;lt;Yesterday&amp;gt;Yesterday&amp;lt;/Yesterday&amp;gt;
      &amp;lt;NextWeek&amp;gt;Next Week&amp;lt;/NextWeek&amp;gt;
      &amp;lt;ThisWeek&amp;gt;This Week&amp;lt;/ThisWeek&amp;gt;
      &amp;lt;LastWeek&amp;gt;Last Week&amp;lt;/LastWeek&amp;gt;
      &amp;lt;NextMonth&amp;gt;Next Month&amp;lt;/NextMonth&amp;gt;
      &amp;lt;ThisMonth&amp;gt;This Month&amp;lt;/ThisMonth&amp;gt;
      &amp;lt;LastMonth&amp;gt;Last Month&amp;lt;/LastMonth&amp;gt;
      &amp;lt;Past&amp;gt;Past&amp;lt;/Past&amp;gt;
      &amp;lt;Future&amp;gt;Future&amp;lt;/Future&amp;gt;
      &amp;lt;Blank&amp;gt;Blank&amp;lt;/Blank&amp;gt;
    &amp;lt;/FilterSuggest&amp;gt;
    ...
  &amp;lt;/ContextMenu&amp;gt;
  ...
&amp;lt;/Localization&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Error opening grid context menu if language XML hasn’t fully loaded yet</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-opening-grid-context-menu-if-language-XML-hasnt-fully-loaded-yet/</link><pubDate>Fri, 16 Dec 2016 14:18:54 GMT</pubDate><dc:creator>mdearman@libera.com</dc:creator><description>&lt;p class="MsoNormal"&gt;WebGrid 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;IE 11&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;Right-clicked on a grid cell causes an error opening context
menu if language XML hasn’t fully loaded yet.&amp;nbsp; The h string is null
because the GetString(…) call returned null in
WGMenuEngine.GetBasicFilterColumns&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;</description></item></channel></rss>