﻿<?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 - Empty Grid Shows "null" At Times</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Empty-Grid-Shows-null-At-Times/</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 - Empty Grid Shows "null" At Times</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Empty-Grid-Shows-null-At-Times/</link><pubDate>Tue, 28 Jul 2015 06:27:15 GMT</pubDate><dc:creator>leo.c</dc:creator><description>&lt;p&gt;Hi Alan,&lt;/p&gt;&lt;p&gt;I have tried the solution you have suggested, but it will cause another issue. Webgrid will run into infinite loop when it tried to set notdatabox (on catch side, it will call ShowNoDataBox again). &amp;nbsp;It seem the intention of try catch in that code was intended to make sure set&amp;nbsp;&lt;span style="font-size: 13.3333330154419px;"&gt;empty data text&lt;/span&gt;&amp;nbsp;finish successfuly, if exception occured (very rare), WebGrid will once again&amp;nbsp;&lt;span style="font-size: 13.3333330154419px;"&gt;set empty data text&lt;/span&gt;&lt;span style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;after several milisecond.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Well, the possible solution right now was by specifying "CommonText/NoData" text item so that&amp;nbsp;f=c.GetString("CommonText/NoData") will return the specified value instead of null, like the one suggested by Handy.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;br&gt;Leo&lt;/p&gt;</description></item><item><title>WebGrid - Empty Grid Shows "null" At Times</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Empty-Grid-Shows-null-At-Times/</link><pubDate>Fri, 26 Jun 2015 09:29:12 GMT</pubDate><dc:creator>alan@etimemachine.com</dc:creator><description>Hi Handy,&lt;br&gt;I found the problem when text show 'null' instead of "There are no rows in this view". This happens when you set StatusBarVisible to False and binding no data in web grid.&lt;br&gt;The problem stay in your WebGrid_UI.js method ShowNoDataBox.&lt;br&gt;try{f=c.GetString("CommonText/NoData")}catch(b){setTimeout(...)}...&lt;br&gt;You try to get text from method GetString. and want it raise exception when message not found. But method GetString only return null text with no exception. Hence you set text equal to null.&lt;br&gt;We can fix it easily by this:&lt;br&gt;try{f=c.GetString("CommonText/NoData");if (f == null) throw new Error("Whatever ...");}catch(b){...}&lt;br&gt;Can you confirm this bug with your dev and fix it in next release?&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;&lt;br&gt;</description></item><item><title>WebGrid - Empty Grid Shows "null" At Times</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Empty-Grid-Shows-null-At-Times/</link><pubDate>Tue, 09 Mar 2010 10:06:22 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Thanks Handy.  I've implemented the ResetStatus on the grid client-side initialization and hopefully that will do the trick.&lt;/p&gt;
&lt;p&gt;The text setting for customization works like we needed, so thank you for that too.&lt;/p&gt;</description></item><item><title>WebGrid - Empty Grid Shows "null" At Times</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Empty-Grid-Shows-null-At-Times/</link><pubDate>Mon, 08 Mar 2010 22:17:21 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Yousif,&lt;/p&gt;&lt;p&gt;ResetStatus(true) will set the text at the middle of WebGrid status where there is no data.&lt;br /&gt;Some scenario could cause the empty text or null. &lt;br /&gt;Btw, I am still unable to replicate 'null' issue as you described. &lt;br /&gt;If this method could not be used as workaround, please set your own text settings.&lt;br /&gt;Open WebGridDesigner&amp;gt;&amp;gt;TextSettings. Add a new one where is NoData.&lt;/p&gt;&lt;pre&gt;  &amp;lt;LayoutSettings AllowGrouping="Yes"&amp;gt;
                    &amp;lt;TextSettings&amp;gt;
                        &amp;lt;TextItems&amp;gt;
                            &amp;lt;ISWebGrid:WebGridTextItem TextItem="CommonText/NoData" TextValue="No Data" /&amp;gt;
                        &amp;lt;/TextItems&amp;gt;
                    &amp;lt;/TextSettings&amp;gt;
  &amp;lt;/LayoutSettings&amp;gt;&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid - Empty Grid Shows "null" At Times</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Empty-Grid-Shows-null-At-Times/</link><pubDate>Mon, 08 Mar 2010 08:59:13 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;I doubt you'll duplicate this issue with just the "out-of-the-box" grid.  We do major customization, but the basic foundation that we have no access to, via the API, hasn't changed.  Please get with Handy as I had sent him detailed code from our grid base class for another item awhile back.  Please do not post any of that code here as it's private and confidential.&lt;/p&gt;
&lt;p&gt;I'll try the ResetStatus, but isn't that for the status line at the bottom?&lt;/p&gt;</description></item><item><title>WebGrid - Empty Grid Shows "null" At Times</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Empty-Grid-Shows-null-At-Times/</link><pubDate>Sun, 07 Mar 2010 23:23:34 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p /&gt;&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Hi Yousif,&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;     By you mean to change the text message, does
it mean that you want to change all the language? If you are willing to change
the language, you will need to use other Localization file instead of
default.xml. You can refer this with
"ms-help://ISNet.WebUI.WebGrid.V7/ISNet.WebUI.WebGrid/Specifying custom
language used in WebGrid.html".&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;     Or, if you see my attached sample file, you
will see that I only change the text to "Null" and keep the language
as a default.&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;     For you issue that the grid is come with
"null" in the middle of it, I am sorry, but I not able to replicate
the issue. Could you kindly modify my sample so that it will replicate the
issue and send them back to me to be investigated?&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;     I hope it helps. Thank you and have a nice
day.&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;o:p /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-top: 7.5pt; margin-right: 0in; margin-bottom: 7.5pt; margin-left: 0in; "&gt;&lt;span style="font-family: 'lucida sans unicode', sans-serif; color: black; font-size: 9pt; "&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;o:p /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>WebGrid - Empty Grid Shows "null" At Times</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Empty-Grid-Shows-null-At-Times/</link><pubDate>Sun, 07 Mar 2010 22:49:25 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Yousif,&lt;/p&gt;&lt;p&gt;Please try to use ResetStatus(true) in WebGrid Intialize event to overcome text 'null' issue.&lt;/p&gt;
&lt;p&gt;e.g&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;var grid = ISGetObject("WebGrid1");
grid.ResetStatus(true);&lt;/pre&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid - Empty Grid Shows "null" At Times</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---Empty-Grid-Shows-null-At-Times/</link><pubDate>Fri, 05 Mar 2010 09:04:00 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Some of our grids come up with "null" in the middle of the grid when there's no data instead of the "There are no rows in this view." text.  See attached.&lt;/p&gt;
&lt;p&gt;Refreshing the page usually takes care of it.  But initially we don't want to see "null" in the middle.  Also, we'd like to be able to set the "There are no rows in this view." text message so we can use different languages.  Is there a way to do that?  Thank you.&lt;/p&gt;</description></item></channel></rss>