﻿<?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 - Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</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>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Fri, 04 Jun 2010 00:43:13 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Please see my recording video. Actually I did the same steps that you mentioned. When using my workaround, it will persist the height. I don't know at initial load but I think you can also set the height at AfterInitialize client side event. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Fri, 04 Jun 2010 00:13:32 GMT</pubDate><dc:creator>tlusby</dc:creator><description>&lt;p&gt;Handy,&lt;/p&gt;
&lt;p&gt;It does help for existing data on that's already on the screen during the initial load.  However, if there is no data on the inital load the OnAfterResponse will not fire and the height is not correct again.  You can also see this same scenario by doing the following:&lt;/p&gt;
&lt;p&gt;Step 1: CustomerID = fjdksa;fsd.  Press Enter.  The results show with correct height.&lt;/p&gt;
&lt;p&gt;Step 2: If the user clicks the "green" Refresh button on the grid, it shrinks, the height. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I'm thinking this is the same scenario would be the same if the inital load has no rows in the view.&lt;/p&gt;</description></item><item><title>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Thu, 03 Jun 2010 23:36:09 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Please see the snippet code below. I hope my workaround can help you. Actually, I even don't need a button to re-Set the height. Just need some validations in OnAfterResponseProcess client side event.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;function WebGrid1_OnAfterResponseProcess(controlId, actionName, lastRequestObject, xmlResponseObject) {
            var grid = ISGetObject("WebGrid1");
            if (grid.RootTable.GetRowsCount() == 0) {
                if (grid.GetSelectedObject() != null) {
                    var selectedObject = grid.GetSelectedObject();
                    selectedObject.ToRowObject().GetCells()[0].ActivateEdit();
                } else {
                    grid.RootTable.ToRowObject(grid.RootTable.GetFilterRow()).GetCells()[0].ActivateEdit();
                }
                grid.ResetStatus(true);
                grid.SetHeight("150px");
            }
            return true;
        }&lt;/pre&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy &lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Thu, 03 Jun 2010 16:54:34 GMT</pubDate><dc:creator>tlusby</dc:creator><description>&lt;p&gt;Andi,&lt;/p&gt;
&lt;p&gt;This is modify the entire way we have built our grids.  At this time, its' not possible for us to back and redo them.  Is there another solution to fix this without redesigning the layout?  &lt;/p&gt;</description></item><item><title>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Thu, 27 May 2010 00:19:57 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Tenika,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I am able to replicate the issue of yours. I think, that is hapenning since we put WebGrid inside a table tag. Here, in the attachment, I have modified those sample so that it will resize the grid and always show the message in every response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I hope it 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;</description></item><item><title>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Wed, 26 May 2010 16:50:47 GMT</pubDate><dc:creator>tlusby</dc:creator><description>&lt;p&gt;Ok I'm still experiencing some weird behavior.  Take the example I have attached...&lt;/p&gt;
&lt;p&gt;Follow these steps to recreate my problem:&lt;/p&gt;
&lt;p&gt;1. Make CustomerID = dafdsasfds and then hit "Enter" (results: grid should be empty and shrunk)&lt;/p&gt;
&lt;p&gt;2. Click button "Resets Height" [This is the first button] (results: grid shows message w/150px height)&lt;/p&gt;
&lt;p&gt;3. On the grid click green "Refresh" icon (results: grid should be empty and shrunk)&lt;/p&gt;
&lt;p&gt;4. Click button "Resets Height" again (results: grid barely shows message and height isn't 150px)&lt;/p&gt;
&lt;p&gt;5. Click button "Resets Height" again (results: grid shows message w/150px height )&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The question is why didn't step 4 resize height not work?  Why did I have to do step 5 for it work?  This is the problem we're experiencing.  &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Tue, 18 May 2010 15:15:39 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Yes, Of course that would happen. Try to validate if there is no rows, specify WebGrid height.&lt;/p&gt;&lt;p&gt;e.g &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;if(grid.TotalRows==0)
{
       grid.SetHeight("200px");
}&lt;/pre&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Tue, 18 May 2010 13:55:48 GMT</pubDate><dc:creator>tlusby</dc:creator><description>&lt;p&gt;This workaround works.  However, I noticed that the "There are no rows in this view" does show but barely.  We do not have a fixed Height but want the grid to grow based on data.  &lt;/p&gt;
&lt;p&gt;To recreate: use the example but remove Height="200px".&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Example of what I'm talking about is enclosed.&lt;/p&gt;</description></item><item><title>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Mon, 17 May 2010 11:53:14 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I can replicate the issue. Please try to use the code below as workaround.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;function window::onload()
{
            var grid = ISGetObject("WebGrid1");
            grid.ResetStatus(true);
}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Ability to see grid message "There are no rows in this view"</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Ability-to-see-grid-message-There-are-no-rows-in-this-view/</link><pubDate>Fri, 14 May 2010 13:43:56 GMT</pubDate><dc:creator>tlusby</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm using the WebGrid 7.0 and when there are no records found I should see "There are no rows in this view."  After researching why I'm unable to see this, using your sample pages, I noticed it was due to the PagingMode="ClassicPaging".   It works if I use VirtualLoad or None.  However, this is the page mode our choice.  &lt;/p&gt;
&lt;p&gt;I have enclosed an example of my layoutsettings that we use so you can see the functionality I'm referring to.  Any feedback would be great!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>