﻿<?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 - GetRowsCount works not correct</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetRowsCount-works-not-correct/</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>GetRowsCount works not correct</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetRowsCount-works-not-correct/</link><pubDate>Sun, 25 Oct 2009 23:13:20 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Batch Update</category><description>The issue for GetRowsCount and CheckedRows will be fixed in the next hotfix release.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Regarding the CheckedRows and multiple selection, you will need to use the function grid.GetCheckedRows(true) to retrieve the correct checked rows during multiple selection in the next hotfix.&lt;/div&gt;</description></item><item><title>GetRowsCount works not correct</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetRowsCount-works-not-correct/</link><pubDate>Fri, 02 Oct 2009 07:38:07 GMT</pubDate><dc:creator>Michael</dc:creator><category>Batch Update</category><description>&lt;p&gt;Hi Glenn&lt;/p&gt;
&lt;p&gt;Thanks for snippet. It works fine!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;About GetCheckedRows issue:&lt;/p&gt;
&lt;p&gt;I had set &lt;strong&gt;&lt;em&gt;AllowMultipleSelection = MultipleSelection.Yes&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;That was the reason why it does not work correctly!&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item><item><title>GetRowsCount works not correct</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetRowsCount-works-not-correct/</link><pubDate>Thu, 01 Oct 2009 23:04:30 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Batch Update</category><description>&lt;p&gt;In a grouped WebGrid you will need to iterate the TR element and get the row object of each TR element which has the Record type in order to retrieve all the IDs. Here is the snippet:&lt;/p&gt;&lt;pre&gt;var grid = ISGetObject("grdObj");&lt;br /&gt;&lt;br /&gt;var Message = "";&lt;br /&gt;var tbl = grid.RootTable.GetElement(WG40.BODY, WG40.HTMLTABLE);&lt;br /&gt;var rowList = tbl.getElementsByTagName("tr");&lt;br /&gt;&lt;br /&gt;for (var i = 0; i &amp;lt; rowList.length; i&amp;#43;&amp;#43;) {&lt;br /&gt;    var tr = rowList[i];&lt;br /&gt;    if (tr.getAttribute("type") == "Record") {&lt;br /&gt;        Message &amp;#43;= grid.GetRowByElement(tr).GetCell("id").Text &amp;#43; "\n";&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;alert(Message);&lt;/pre&gt;&lt;p&gt;Regarding the GetCheckedRows issue, we are not able to replicate it in our environment. Under group or ungroup WebGrid the GetCheckedRows function will always return the correct collection of checked TR element in the WebGrid. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>GetRowsCount works not correct</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetRowsCount-works-not-correct/</link><pubDate>Thu, 01 Oct 2009 02:28:39 GMT</pubDate><dc:creator>Michael</dc:creator><category>Batch Update</category><description>&lt;p&gt;Hi Glenn&lt;/p&gt;
&lt;p&gt;Please check also this behavior:&lt;/p&gt;
&lt;p&gt;I use following test code:&lt;/p&gt;&lt;pre&gt;            var Message = "";
            for (var k = 0; k &amp;lt; 5; k&amp;#43;&amp;#43;) {
                Message &amp;#43;= grdComputerLine.RootTable.GetRow(k).GetCell("ID").Text &amp;#43; "\n";
            }
            alert(Message);&lt;/pre&gt;
&lt;p&gt;If the WebGrid is not grouped I get all IDs in correctly order (see ForEach.jpg).&lt;/p&gt;
&lt;p&gt;If the WebGrid is grouped I get only 3 IDs (see ForEachGrouped).&lt;/p&gt;
&lt;p&gt;How can I get all IDs, if the WebGrid are grouped?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;By the way: RootTable.GetCheckedRows() also doesn't work correctly. It seems to be the same problem...&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item><item><title>GetRowsCount works not correct</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetRowsCount-works-not-correct/</link><pubDate>Wed, 30 Sep 2009 22:42:05 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Batch Update</category><description>&lt;p&gt;We have successfully replicated the issue in our environment. A bugreport has been submitted to our developer. We will inform you if there
is any update or progress regarding this issue.&lt;/p&gt;</description></item><item><title>GetRowsCount works not correct</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetRowsCount-works-not-correct/</link><pubDate>Wed, 30 Sep 2009 11:52:22 GMT</pubDate><dc:creator>Michael</dc:creator><category>Batch Update</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I want a loop over all rows on Client Side. I have write following code:&lt;/p&gt;&lt;pre&gt;for (var k = 0; k &amp;lt; grdComputerLine.RootTable.GetRowsCount(); k&amp;#43;&amp;#43;) {

    if (grdComputerLine.RootTable.GetRow(k).Type == "Record") {

        // do something...
    }
}&lt;/pre&gt;

&lt;p&gt;But GetRowsCount works not correct if there are pending changes (Batch Update Mode).&lt;/p&gt;
&lt;p&gt;Please have a look on attached pictures.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item></channel></rss>