﻿<?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 - CellSelect</title><link>http://www.intersoftsolutions.com/Community/Tags/CellSelect/</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>Js error right clicking group header with AutoFilterSuggestion=True and CellSelect</title><link>http://www.intersoftsolutions.com/Community/Tags/CellSelect/</link><pubDate>Tue, 15 Sep 2009 16:44:09 GMT</pubDate><dc:creator>mdearman@libera.com</dc:creator><category>AutoFilterSuggestion</category><category>CellSelect</category><description>&lt;span style="font-size: 13px"&gt;&lt;p&gt;If I have a column groupped, then right-click on the Group Header, I get a JsError:&lt;/p&gt;&lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;
&lt;p&gt;Line 7 - Microsoft JScript runtime error: 'null' is null or not an object&lt;/p&gt;
&lt;p&gt;The WG code failing is:&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt; (vc2760.LayoutSettings.AutoFilterSuggestion &amp;amp;&amp;amp; v2d979 !=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #a31515; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #a31515; font-family: courier new"&gt;"NewRow"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt; &amp;amp;&amp;amp; v0285.Cell !=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt; &amp;amp;&amp;amp;v2a317.IsRootTable) { 

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt; (v3a296 ==&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;&lt;span style="font-size: 13px; color: #0000ff; font-family: courier new"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;) v3a296 =wgGetColNameByCell(v0285.Cell); 

&lt;p&gt;The cell HTML is:&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9px; font-family: courier new"&gt;&lt;span style="font-size: 9px; font-family: courier new"&gt;
&lt;p&gt;&amp;lt;TR style="HEIGHT: 20px" type="GroupHeader" position="1" hasParent="False" selectionMode fullPath="" childrenLoaded="True" groupIndex="0" expanded="False"&amp;gt;&amp;lt;TD class=grdPDQ-GroupRow style="WIDTH: 16px; BORDER-RIGHT-WIDTH: 0px" align=middle type="GroupCell"&amp;gt;&amp;lt;IMG onclick=WGUI.TGROW(this) src="ISRes.axd?G/wg_plus.gif" align=absMiddle&amp;gt;&amp;lt;/TD&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;TD class=grdPDQ-GroupRow title="" style="BORDER-LEFT-WIDTH: 0px; WIDTH: 100%" noWrap colSpan=11 type="GroupCell"&amp;gt;Category: 2&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;"&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have the following setup:&lt;/p&gt;&lt;dir&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;
&lt;p&gt;AutoFilterSuggestion = True&lt;/p&gt;
CellClickAction=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-family: times new roman"&gt;CellSelect&lt;/span&gt; &lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/dir&gt;&lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;
&lt;p&gt;AutoFilterSuggestion = True&lt;/p&gt;
CellClickAction=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-family: times new roman"&gt;CellSelect&lt;/span&gt; &lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;p&gt;With a quick Js debugging session, it looks like the WebGrid is trying to get the cell's column name by cell, but the context menu Cell is really a TR for the GroupHeader (which is correct, but failing).&lt;/p&gt;If I set &lt;/span&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;&lt;span style="font-size: 13px; font-family: courier new"&gt;AutoFilterSuggestion = False&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;, then the error does not occur and the context menu appears without error (however does not have the auto-suggest options) &lt;/span&gt;

&lt;p&gt;&lt;span style="font-size: 13px"&gt;I am running WebGrid 7 from 2009 R1 SP1 (the latest from 9/1), but this error occurred in non-SP1 as well.

&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;</description></item></channel></rss>