﻿<?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 - Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</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>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Tue, 17 Nov 2009 20:34:45 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Ok, Thank you Madhavan. I understand your explanation now. I could not see the issue before because I was not grouping the particular column. My column has the same total rows with normal rows. That's why it returned the same value :-). I will contact this to our developer. Thanks again.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Tue, 17 Nov 2009 01:57:09 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi handy,&lt;/p&gt;
&lt;p&gt;No.Client side it is giving 20.&lt;/p&gt;
&lt;p&gt;But server side it is giving grouprows count say if i have 6 groups.then the count is 6.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Mon, 16 Nov 2009 22:28:36 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Madhavan,&lt;/p&gt;&lt;p&gt;I ran your sample and did grouping mode. The value of RowsCount is 20. It is the same value like client side alert. Should you have the same result?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Mon, 16 Nov 2009 04:25:43 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;In your sample I didn't see any grouping on column enabled.&lt;/p&gt;
&lt;p&gt;Please check our sample page which replicates the issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Sun, 15 Nov 2009 22:16:00 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Here, i reattached again. Using WebGrid1.RootTable.Rows.Count should work fine. Maybe you can help me by sending me a simple sample (runable) that shows the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Handy&lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Fri, 13 Nov 2009 03:56:53 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;your attachment is downloading but it is saying invalid archive if we open it.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This is the code snippet i tried:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;client side&lt;/p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;
function&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; GetCheckedRowsCount()&lt;p&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; grid=ISGetObject(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"WebGrid1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; rootTable = grid.RootTable;&lt;p&gt;grid.AddInput(&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"ISMultiSelectQueue"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;,&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"Y"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"ISMultiSelectQueue"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;,&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"Y"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; chkrows=&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;""&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;;&lt;/span&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;//alert(grid.RootTable.GetRowsCount());
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;p&gt;chkrows=grid.TotalLoadedRows;&lt;/p&gt;&lt;p&gt;grid.AddInput(&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"TotLoadedRows"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;,chkrows &amp;#43;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;''&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;p&gt;grid.SendCustomRequest();&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"TotLoadedRows"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;,chkrows &amp;#43;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;''&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;p&gt;grid.SendCustomRequest();&lt;/p&gt;&lt;/span&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;//grid.RefreshAll();
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;p&gt;alert(grid.RootTable.GetRowsCount());&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/span&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Server Side:&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; WebGrid1_InitializePostBack(&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; sender, &lt;/span&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;PostbackEventArgs&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; e)&lt;p&gt;{&lt;/p&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; (e.Action == &lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"Custom"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &amp;&amp; !&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;.IsNullOrEmpty(Request[&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"ISMultiSelectQueue"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;]))&lt;p&gt;{&lt;/p&gt;System.Collections.&lt;/span&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;ArrayList&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; workitemIds = WebGrid1.RootTable.GetCheckedRows();System.Collections.&lt;/span&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;ArrayList&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; workitemObj = &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; System.Collections.&lt;/span&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;ArrayList&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;();&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; rowsCount = WebGrid1.RootTable.Rows.Count;&lt;/span&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;madhavan&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Fri, 13 Nov 2009 02:10:17 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Madhavan, &lt;/p&gt;&lt;p&gt;I have tested my previous sample and when i watched the value of &lt;i&gt;&lt;b&gt;WebGrid1.RootTable.Rows.Count&lt;span style="font-style: normal; "&gt;. &lt;/span&gt;&lt;span style="font-weight: normal; "&gt;&lt;span style="font-style: normal; "&gt;It still has the same value like in client side. I also attached the video. &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Fri, 13 Nov 2009 01:11:17 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;From client side count  is coming correctly.&lt;/p&gt;
&lt;p&gt;But from server side it is giving only the grouprows count.&lt;/p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;
int&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; rowsCount = WebGrid1.RootTable.Rows.Count;&lt;/span&gt;

&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Please advice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Madhavan&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Thu, 12 Nov 2009 22:04:54 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Madhavan,&lt;/p&gt;&lt;p&gt;Weird, in my sample, it shows correct result. I am sending you my sample. Please let me know if the result is correct or not. You can also send me your simple sample (runable) which replicate the issue. Maybe some scenario is missing when fixed the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Thu, 12 Nov 2009 05:18:51 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;After applying the hotfix Patch also the &lt;/p&gt;
&lt;p&gt;WebGrid1.RootTable.Rows.Count is not coming correctly.&lt;/p&gt;
&lt;p&gt;Please advice.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;</description></item><item><title>Rowscount and CheckedRows with Grouping column enabled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/RowscountandCheckedRowswithGroupingcolumnenabled/</link><pubDate>Thu, 05 Nov 2009 04:26:48 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;Option 1:&lt;/p&gt;
&lt;p&gt;I have a Webgrid with multi select enabled.&lt;/p&gt;
&lt;p&gt;So based on the checkboxes clicked i have to do some operations from context menu.&lt;/p&gt;
&lt;p&gt;So I am calling a javascript on contextmenu click.&lt;/p&gt;
&lt;p&gt;I am checking the CheckedRows in the Serverside &lt;/p&gt;&lt;pre&gt;ArrayList workitemIds = WebGrid1.RootTable.GetCheckedRows();

ArrayList workitemObj = new ArrayList();

int rowsCount = WebGrid1.RootTable.Rows.Count; 

Guid multiSelectQueueId = Guid.Empty;

for (int i = 0; i &amp;lt; workitemIds.Count; i&amp;#43;&amp;#43;)

{

for (int j = 0; j &amp;lt; rowsCount; j&amp;#43;&amp;#43;)

{

if (WebGrid1.RootTable.Rows[j].KeyValue.ToString() == WebGrid1.RootTable.GetCheckedRows()[i].ToString())

{

string workflow = WebGrid1.RootTable.Rows[j].Cells.GetNamedItem("Workflow").Text;

Guid WorkitemId = new Guid(WebGrid1.RootTable.GetCheckedRows()[i].ToString());

Skelta.HWS.WorkItem workitem = new Skelta.HWS.WorkItem(new Skelta.Core.WorkflowObject(workflow, new Skelta.Core.ApplicationObject(_ApplicationName)), WorkitemId);

if(multiSelectQueueId==Guid.Empty)

{

if (workitem.QueueId != Guid.Empty)

{

multiSelectQueueId = workitem.QueueId;

}

}

workitemObj.Add(workitem);

}

else

{

continue;

}

}

}

&lt;/pre&gt;

&lt;p&gt; If i don;t have grouping column in my webgrid WebGrid1.RootTable.Rows.Count is coming correctly.&lt;/p&gt;
&lt;p&gt;Otherwise it is not coming correctly.&lt;/p&gt;
&lt;p&gt;How can i achieve this?Because i need to loop through the Webgrid rows and check the keyvalue is matching and get the other details for the row to perform.&lt;/p&gt;
&lt;p&gt;Please advice.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan &lt;/p&gt;</description></item></channel></rss>