﻿<?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 - Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</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>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Thu, 16 Sep 2010 08:58:54 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Hi Niven,&lt;/p&gt;
&lt;p&gt;Thank you for following up.  It's not a minor issue for us, however, I do have a temporary workaround.  The workaround above did not work all the time.  For whatever reason, when we have another grid on the same page that show/hide, it restores the ROW's style to that message row.  So a grid with no data would come up fine with the workaround above, however, once we show the other grid, the line comes back on both grids which makes no sense.&lt;/p&gt;
&lt;p&gt;Even debugging the page in F12 in IE, shows the borders are all set to 0px yet it still uses the ROW style.  Anyway, it occurred to me that maybe using a class may work and it does.  So for now, we use a class and assign it in JavaScript after the page/grids load.&lt;/p&gt;
&lt;p&gt;We define our normal row, and now the one with no borders, classes like this:&lt;/p&gt;&lt;span style="color: #a31515; font-size: 9px"&gt;&lt;span style="color: #a31515; font-size: 9px"&gt;&lt;pre&gt;.GridRow, .GridRowNoBorders
{
	background-color: White;
	font-family: Calibri;
	font-size: 9pt;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	vertical-align: top;
}

.GridRowNoBorders
{
	border: solid 0px #000000;
}
&lt;/pre&gt;

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9px"&gt;&lt;span style="font-size: 10pt"&gt;And then on the client side, we assign once we find the NoData object, i.e.,&lt;/span&gt;&lt;/span&gt;
&lt;pre&gt;    var oNoDataContainer = document.getElementById(gridId &amp;#43; "_ND");
    if (jsg_PrismUtility.IsVo(oNoDataContainer))
    {
        if (oGrid.TotalLoadedRows == "0")
        {
            oNoDataContainer.className = arGridInfo[gridId].NoDataCssClassName;
        }
    }
&lt;/pre&gt;

</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Thu, 16 Sep 2010 02:18:55 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hi Yousif,&lt;/p&gt;
&lt;p&gt;I apologize, the issue have not fix yet. Since it was considerable as a minor issue. But I will follow this issue again to the developer team..&lt;/p&gt;
&lt;p&gt;Sorry for the inconvenience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niven Prasetya&lt;/p&gt;</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Wed, 15 Sep 2010 08:34:34 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Has this problem been fixed in 2010 R1?  I just installed it yesterday and it doesn't look like it's been fixed.  I really hope you can get this fixed and add new styles specific to this message rather than apply styles from other rows that don't really apply.  Thanks.&lt;/p&gt;</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Mon, 17 May 2010 11:33:19 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Yousif,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Yes, if you use that method, we will need to use space instead of just "". My javascript solution should meet the scenario of yours. Here, I attached you a screenshot of my sample.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Fri, 14 May 2010 15:12:00 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Hi Andi,&lt;/p&gt;
&lt;p&gt;Okay, I'll try your method but it will be a few days before I get back to it.  In the meanwhile, here's how we get rid of the text.&lt;/p&gt;&lt;span style="font-size: 10pt"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt"&gt;ISNet.WebUI.WebGrid.&lt;span style="color: #2b91af"&gt;&lt;span style="color: #2b91af"&gt;WebGridTextItem&lt;/span&gt;&lt;/span&gt; oTextItem = &lt;br /&gt;      &lt;span style="color: #0000ff"&gt;&lt;span style="color: #0000ff"&gt;new&lt;/span&gt;&lt;/span&gt; ISNet.WebUI.WebGrid.&lt;span style="color: #2b91af"&gt;&lt;span style="color: #2b91af"&gt;WebGridTextItem&lt;/span&gt;&lt;/span&gt;(&lt;span style="color: #a31515"&gt;&lt;span style="color: #a31515"&gt;"CommonText/NoData"&lt;/span&gt;&lt;/span&gt;,&lt;span style="color: #a31515"&gt;&lt;span style="color: #a31515"&gt;" "&lt;/span&gt;&lt;/span&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 10pt"&gt;&lt;span style="color: #0000ff"&gt;&lt;span style="color: #0000ff"&gt;if&lt;/span&gt;&lt;/span&gt; (!&lt;span style="color: #0000ff"&gt;&lt;span style="color: #0000ff"&gt;this&lt;/span&gt;&lt;/span&gt;.LayoutSettings.TextSettings.TextItems.Contains(oTextItem))&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 10pt"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 10pt"&gt;&lt;span style="color: #0000ff"&gt;&lt;span style="color: #0000ff"&gt;      this&lt;/span&gt;&lt;/span&gt;.LayoutSettings.TextSettings.TextItems.Add(oTextItem);&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size: 10pt"&gt;}&lt;/span&gt;&lt;span style="font-size: 10pt"&gt;&lt;p&gt;Note that we do have to use a space because using "" does not work.&amp;nbsp; I'm confident your javascript solution should work as long as the nodes are consistenly in the same place on every grid.&lt;/p&gt;&lt;/span&gt;</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Fri, 14 May 2010 15:07:00 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Yousif,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Could you kindly try this workaround? I have tried use this and the vertical line is not showing anymore. And please ensuer that you are not using the &amp;lt;Text Setting&amp;gt; &amp;lt;TextItem&amp;gt; again to remove the "Grid has not row". Here is the snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;   setTimeout(function() { 
           ISGetObject("WebGrid2").FrameObj.childNodes[2].childNodes[1].innerText = "";
   }, 50);&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;I hope it can helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Fri, 14 May 2010 08:16:58 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Hello Handy,&lt;/p&gt;
&lt;p&gt;Well, we can't remove this from our grid configuration as it will remove the vertical lines from the grid.  See attached.&lt;/p&gt;
&lt;p&gt;Can you guys add a skin and style setting specific to the message container so it can be formatted separately please?  This is an issue since it shares the style and does not "blank" it out when there's no data in the grid.&lt;/p&gt;
&lt;p&gt;Unless you have a suggestion as to how we can achieve our vertical lines another way?  We use a different shade in the headers and in the grid rows which is why we have it set up this way.&lt;/p&gt;</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Thu, 13 May 2010 23:46:36 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Yousif,&lt;/p&gt;&lt;p&gt;Thank you for your guidance. I am able to replicate the issue. When you set TextSettings for &lt;b&gt;&lt;i&gt;TextValue  &lt;/i&gt;&lt;/b&gt;as " " to replace "&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; color: rgb(63, 63, 63); line-height: 18px; "&gt;grid has no rows in this view" message, It will be considered as a blank row. &lt;br /&gt;The problem is in your RowStyle, you define BorderSettings for right side. This should be not declared.&lt;br /&gt;So, please try to remove the border style to remove the vertical line issue.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;RowStyle CssClass="GridRow" BorderStyle="Solid" BorderWidth="0px"&amp;gt;
           &lt;span style="color: rgb(255, 0, 0); "&gt; &amp;lt;BorderSettings&amp;gt;
                        &amp;lt;Right Color="#d0d0d0" Width="1px" /&amp;gt;
            &amp;lt;/BorderSettings&amp;gt;&lt;/span&gt;
&amp;lt;/RowStyle&amp;gt;&lt;/pre&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Thu, 13 May 2010 12:54:00 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Andi,&lt;/p&gt;
&lt;p&gt;I tried updating our skin file but it had no impact.  Here's our skin settings for the grid.  The changes I made are in blue and bolded.&lt;/p&gt;&lt;pre&gt;    &amp;lt;LayoutSettings
            AllowAddNew="No" 
            AllowColumnFreezing="No" 
            AllowColumnMove="Yes" 
            AllowColumnSizing="Yes" 
            AllowContextMenu="true" 
            AllowDelete="No" 
            StatusBarVisible="true"
            AllowEdit="No" 
            AllowSelectColumns="Yes" 
            AllowSorting="No" 
            AllowExport="Yes" 
            PagingSize="10" 
            PagingMode="VirtualLoad" 
            VirtualLoadMode="LargeData" 
            VirtualPageSize="100" 
            Hierarchical="false" 
            AutoFitColumns="false" 
            GridLines="Vertical" 
            PersistRowChecker="true"
            RowHeaders="No" 
            AutoHeight="false" 
            AutoWidth="false" 
            RowHeightDefault="-1px" 
            AlternatingColors="true"
            UseRelativePositioning="true"
            GridLineColor="#d0d0d0" 
            AlwaysShowHelpButton="false" 
            ColumnFooterAggregateMode="CalculateAllData" 
            DisplayDetailsOnUnhandledError="false"
            &amp;gt;

        &amp;lt;TextSettings Language="UseCulture" 
            LocalizationFolder="~/CommonLibrary/WebGrid/V7_0_7200/Localization/" 
            UseWebResources="False"&amp;gt;
        &amp;lt;/TextSettings&amp;gt;

         &amp;lt;CheckedRowStyle CssClass="GridSelectedRow"&amp;gt;&amp;lt;/CheckedRowStyle&amp;gt;

        &amp;lt;FrameStyle BackColor="White" BorderColor="DarkGray" BorderStyle="none" 
            BorderWidth="0px" &lt;span style="color: #0070c0"&gt;&lt;strong&gt;Overflow="Hidden" OverflowX="Hidden" OverflowY="Hidden"&lt;/strong&gt;&lt;/span&gt;&amp;gt;
        &amp;lt;/FrameStyle&amp;gt;

        &amp;lt;GroupByBox&amp;gt;
            &amp;lt;Style CssClass="GridGroupByBox"&amp;gt;&amp;lt;/Style&amp;gt;
            &amp;lt;LabelStyle CssClass="GridGroupByBoxLabel"/&amp;gt;
        &amp;lt;/GroupByBox&amp;gt;

        &amp;lt;GroupRowInfoStyle BackColor="#F1EFE2" BorderColor="White" BorderStyle="Solid" 
            BorderWidth="0px" 
            CustomRules="border-bottom-color: Silver; border-right-color: Silver" 
            Font-Names="Verdana" Font-Size="8pt" font-bold="True" forecolor="#676896"&amp;gt;
            &amp;lt;BorderSettings&amp;gt;
                &amp;lt;Bottom Color="144, 145, 182"  Width="2px" /&amp;gt;
                &amp;lt;Right Color="Silver" /&amp;gt;
            &amp;lt;/BorderSettings&amp;gt;
        &amp;lt;/GroupRowInfoStyle&amp;gt;

        &amp;lt;AlternatingRowStyle CssClass="GridAlternatingRow" BorderStyle="Solid" BorderWidth="0px"&amp;gt;
            &amp;lt;BorderSettings&amp;gt;
                &amp;lt;Right Color="#d0d0d0" Width="1px" /&amp;gt;
            &amp;lt;/BorderSettings&amp;gt;
        &amp;lt;/AlternatingRowStyle&amp;gt;

        &amp;lt;FocusCellStyle BorderColor="DimGray" BorderStyle="Solid" BorderWidth="1px" /&amp;gt;

        &amp;lt;RowStyle CssClass="GridRow" BorderStyle="Solid" BorderWidth="0px"&amp;gt;
            &amp;lt;BorderSettings&amp;gt;
                &amp;lt;Right Color="#d0d0d0" Width="1px" /&amp;gt;
            &amp;lt;/BorderSettings&amp;gt;
        &amp;lt;/RowStyle&amp;gt;

        &amp;lt;SelectedRowStyle CssClass="GridSelectedRow"/&amp;gt;

        &amp;lt;HeaderStyle CssClass="GridHeader" BorderStyle="Solid" BorderWidth="0px"&amp;gt;
            &amp;lt;Padding Bottom="4px" Left="2px" Right="2px" Top="4px" /&amp;gt;
            &amp;lt;BorderSettings&amp;gt;
                &amp;lt;Bottom Color="#f0f0f0" Width="0px" /&amp;gt;
                &amp;lt;Right Color="#c0c0c0" Width="1px" /&amp;gt;
            &amp;lt;/BorderSettings&amp;gt;
        &amp;lt;/HeaderStyle&amp;gt;
        
        &amp;lt;FooterStyle CssClass="GridFooter" /&amp;gt;
        
        &amp;lt;StatusBarStyle CssClass="GridStatusBar"&amp;gt;
        &amp;lt;/StatusBarStyle&amp;gt;
        
    &amp;lt;/LayoutSettings&amp;gt;
&lt;/pre&gt;
</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Thu, 13 May 2010 12:32:53 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Thanks Andi.  I'll give it a try and see how this works.  Just FYI, I wound up working around this via JavaScript after the grid initializes like this in OnAfterInitialize:&lt;/p&gt;&lt;pre&gt;var oNoDataContainer = document.getElementById(gridId &amp;#43; "_ND");
if (jsg_PrismUtility.IsVo(oNoDataContainer))
{
   oNoDataContainer.style.borderRight = "0px solid #000000";
   oNoDataContainer.style.borderLeft = "0px solid #000000";
   oNoDataContainer.style.borderTop = "0px solid #000000";
   oNoDataContainer.style.borderBottom = "0px solid #000000";
}
&lt;/pre&gt;</description></item><item><title>Empty Grid Has Extraneous Vertical Line</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Empty-Grid-Has-Extraneous-Vertical-Line/</link><pubDate>Wed, 12 May 2010 13:21:20 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Some of our grids may be empty.  In those cases, we've removed the standard "grid has no rows in this view" message so it's just blank.  However, we've not noticed a vertical line to the far right of the grid.  I can only assume it's a style being applied to the container of the aforementioned message?&lt;/p&gt;
&lt;p&gt;Please see the attached snapshot.  Would appreciate input on how to get rid of this please.  Thank you.&lt;/p&gt;</description></item></channel></rss>