﻿<?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 - WebGrid 10 - Infinite recursive loop in SetColumnLabelWidth if grid is invisible</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-10---Infinite-recursive-loop-in-SetColumnLabelWidth-if-grid-is-invisible/</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>WebGrid 10 - Infinite recursive loop in SetColumnLabelWidth if grid is invisible</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-10---Infinite-recursive-loop-in-SetColumnLabelWidth-if-grid-is-invisible/</link><pubDate>Tue, 20 Dec 2016 17:25:48 GMT</pubDate><dc:creator>mdearman@libera.com</dc:creator><description>&lt;p&gt;I also saw what the SetColumnLabelWidth function does to help set the auto width, which has its own "wait until the column/grid is visible" logic.&lt;/p&gt;&lt;p&gt;The issue in our scenario is that the outer DIV (higher up in the DOM) is being hidden by an element/control that has no idea what is in the container, so it doesn't know the grid is there. &amp;nbsp;So it can't call Visible=false or ClientVisible=false.&lt;/p&gt;&lt;p&gt;Can the grid and&amp;nbsp;SetColumnLabelWidth work together to check if any of its parent elements are hidden, and skip the continuous timeout checks per column? &amp;nbsp;Perhaps a single grid "check if visible" timeout (maybe not so aggresive/quick at 10ms) that can then call into the columns to set their label width, etc? &amp;nbsp;I know it can't detect when it becomes visible due to a parent element, so this might be at least a consolidated check.&lt;/p&gt;&lt;p&gt;Mike&lt;/p&gt;</description></item><item><title>WebGrid 10 - Infinite recursive loop in SetColumnLabelWidth if grid is invisible</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-10---Infinite-recursive-loop-in-SetColumnLabelWidth-if-grid-is-invisible/</link><pubDate>Mon, 19 Dec 2016 02:28:34 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Thank you for taking the time to provide the sample. By following the instruction, I was able to reproduce the infinite recursive loop in SetColumnLabelWidth if WebGrid is invisible.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Per my test, the reported problem doesn't persist when &lt;strong&gt;&lt;em&gt;Visible&lt;/em&gt;&lt;/strong&gt; property is set to &lt;em&gt;false&lt;/em&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid ID="WebGrid2" runat="server" Height="300px" Width="100%"
    UseDefaultStyle="True" DataSourceID="AccessDataSource1" Visible="false"&amp;gt;
    ...
&amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;
&lt;br&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;According to the information I got from WebGrid development team, the SetColumnLabelWidth is used to prettify WebGrid column appearance. Preventing this function to work may cause the grid appearing disorderly after set back to visible.&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;span&gt;The SetColumnLabelWidth function is called over 2716 times through what appears to be a call from WGUIEngine.RealignSortIndicators(this.RootTable);&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Per my test, this behavior doesn't causing the browser to stop responding; or cpu usage increasing; etc. Please feel free to let me know if there is anything that I might miss during my investigation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Look forward to hearing back from you.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid 10 - Infinite recursive loop in SetColumnLabelWidth if grid is invisible</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-10---Infinite-recursive-loop-in-SetColumnLabelWidth-if-grid-is-invisible/</link><pubDate>Fri, 16 Dec 2016 14:26:02 GMT</pubDate><dc:creator>mdearman@libera.com</dc:creator><description>&lt;p class="MsoNormal"&gt;&lt;span style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;I
know I reported this last year for WebGrid 9.&amp;nbsp; This still occurs in
WebGrid 10.&amp;nbsp; I might have found the extra setup causing the issue – just
loading a page if the grid is rendered into a hidden element, not just
ClientVisible=false.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;The
SetColumnLabelWidth function is called over 2716 times through what appears to
be a call from WGUIEngine.RealignSortIndicators(this.RootTable);&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;I
attached a sample WebGrid with instructions and setup to trigger this.&lt;br&gt;&lt;/span&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;The
column is marked as a.sortOrder = “Ascending”&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Mike&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>