﻿<?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 - Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</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>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Mon, 15 Nov 2010 11:28:45 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Madhavan,&lt;/p&gt;
&lt;p&gt;I got a response from our developer teams. However, this is not a bug but it is a default behaviour. &lt;/p&gt;
&lt;div class="Descr" id="d1"&gt;&lt;p&gt;The Rows.Count in the Grid object model would show the number of rows shown in the table, so it won't be the virtual one that being shown.&lt;br /&gt;To get the total rows, you can&amp;nbsp;query to the datasource itself, i.e, the dataset, or other services that provide the real datasource.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;&lt;/div&gt;</description></item><item><title>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Thu, 02 Sep 2010 03:05:46 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Madhavan,&lt;/p&gt;&lt;p&gt;My suggestion, if you want to get the other cell value of checked rows, you can use clientside method &lt;b&gt;&lt;i&gt;GetRowByKeyValue()&lt;/i&gt;&lt;/b&gt; method in clientside. &lt;br /&gt;First, you will need to pass the KeyValue that you have obtained in serverside with &lt;b&gt;&lt;i&gt;GetRowsChecker().&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: normal; font-weight: normal; "&gt;Regards,&lt;br /&gt;Handy&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;</description></item><item><title>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Wed, 01 Sep 2010 06:53:10 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Handy,&lt;/p&gt;
&lt;p&gt;The GetCheckedRows Method is returning an ArrayList and the values are the Keyvalues (In the Replicated sample it is OrderId column value).For the Checkedrow i need CustomerId column value also.Can you please modify my replicated sample on how to do it. &lt;/p&gt;
&lt;p&gt;In Our Original Scenario it is Workitemid column value  for us. But we also need some other column values for the checked rows in our scenario we need workflow column value.That's why we need the Row object see the code below&lt;/p&gt;&lt;pre&gt;Guid WorkitemId = new Guid(WebGrid1.RootTable.GetCheckedRows()[i].ToString());&lt;/pre&gt;&lt;pre&gt;string workflow = WebGrid1.RootTable.Rows[j].Cells.GetNamedItem("Workflow").Text;

Skelta.HWS.WorkItem workitem = new Skelta.HWS.WorkItem(new Skelta.Core.WorkflowObject(workflow, new Skelta.Core.ApplicationObject(_ApplicationName)), WorkitemId);&lt;/pre&gt;
&lt;p&gt;One more thing. We want to do this logic in Webgrids Initializepostback method.That's why we are doing the sendcustomrequest.&lt;/p&gt;
&lt;p&gt;our scenario is after selecting the checkbox the multi select operation should happen without postback.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &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>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Wed, 01 Sep 2010 06:24:28 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Madhavan,&lt;/p&gt;&lt;p&gt;If you only want to get your selected row which you got from checkbox, you can instanly use GetCheckedRows(). &lt;br /&gt;&lt;b&gt;ISRowChecker&lt;/b&gt; is used for multiple selection. So, every checked rows can be obtained with GetCheckedRows(). &lt;br /&gt;&lt;br /&gt;So, I don't get it why do you need to get rows count in your previous sample. The rows count you used, is  not to get checked rows.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Tue, 31 Aug 2010 04:55:19 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;Please tell us how to achieve our scenario.&lt;/p&gt;
&lt;p&gt;Our scenario is we will be selecting the checkboxes on first page or after clicking on load more.&lt;/p&gt;
&lt;p&gt;Then we will click on the Html button which is currently sending a custom request and in the initailize postback method we are doing the operation of adding our objects of the selected row into a cache and then opening the required window to act on it by using Webgrid1.ClientAction.InvokeScript from the Initialize postback method.&lt;/p&gt;
&lt;p&gt;Please advice.It is urgent.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;
&lt;p&gt;  &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Tue, 31 Aug 2010 04:05:12 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Madhavan,&lt;/p&gt;&lt;p&gt;This bug is only showed if you use SendCustomRequest.&lt;br /&gt;FYI, you can try to alert the row, in IntializePostBack event and try to do refresh.&lt;br /&gt;Notice that, the count goes wrong after SendCustomRequest.&lt;br /&gt;I will report this to our developer team.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Tue, 31 Aug 2010 00:36:00 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;
&lt;p&gt;Please find the attached sample.&lt;br /&gt;GetCheckedRows is returning correct count after the click of loadmore.&lt;/p&gt;
&lt;p&gt;But the Webgrid.RootTable.Rows of the checked rows after click of loadmore is returning as null.&lt;/p&gt;
&lt;p&gt;Webgrid.RootTable.rows.count is returning only the first page loaded rows and not the loaded rows count of second page.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Please see the attched replicated sample.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;</description></item><item><title>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Thu, 26 Aug 2010 16:52:04 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Madhavan,&lt;/p&gt;&lt;p&gt;I already created a simple sample and use a button to check the checkedRows. However, the collection looks just fine. Could you please replicate in my sample?&lt;/p&gt;</description></item><item><title>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Thu, 26 Aug 2010 05:16:45 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Already ISRoWChecker=true is set for the checkbox.&lt;/p&gt;
&lt;p&gt;Please let me know what else could be the reason.&lt;/p&gt;
&lt;p&gt;Why Webgrid1.RootTable.Rows[i] is coming as null after doing the loadmore for the newly loaded rows after clicking the loadmore icon.&lt;/p&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;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Thu, 26 Aug 2010 04:58:56 GMT</pubDate><dc:creator>qq397472251</dc:creator><description>&lt;p&gt;I have met the problem before,I solve by:&lt;br /&gt;&lt;br /&gt; cliend side: &lt;br /&gt;               &amp;lt;Columns&amp;gt;&lt;br /&gt;                &amp;lt;ISWebGrid:WebGridColumn Name="Checker"  IsRowChecker="true" &amp;gt;&lt;br /&gt;            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;br /&gt;      ...................&lt;br /&gt;                       &amp;lt;/Columns&amp;gt;&lt;/p&gt;
&lt;p&gt;server side:&lt;br /&gt;protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;        {      &lt;br /&gt;           &lt;br /&gt;            TextBox1.Text = "checked rows : \n";&lt;br /&gt;            foreach (string keyValue in WebGrid1.RootTable.GetCheckedRows())&lt;br /&gt;            {&lt;/p&gt;
&lt;p&gt;                TextBox1.Text &amp;#43;= WebGrid1.RootTable.Rows.GetRowByKeyValue(keyValue).Position &amp;#43; " ; \n";//current rowIndex                    &lt;br /&gt;  &lt;br /&gt;            }&lt;br /&gt;        }&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Problem with Webgrid in Virtual Mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-with-Webgrid-in-Virtual-Mode/</link><pubDate>Thu, 26 Aug 2010 02:38:12 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Team,&lt;/p&gt;
&lt;p&gt;We are using Webgrid 7.&lt;/p&gt;
&lt;p&gt;We are having multi select functionality means we will select the checkbox and act on it for various operations.&lt;/p&gt;
&lt;p&gt;1.Loading the grid with virtualmode enabled.Say we have 5 records.We have set  virtaulpagesize as 2.&lt;/p&gt;
&lt;p&gt;2.First time it loads with 2 records and we can do multi select and perform the operation by clicking on button (pick,plan etc).&lt;/p&gt;
&lt;p&gt;3.Then I am Selecting the next 3 records by clicking on LoadMore icon.&lt;/p&gt;
&lt;p&gt;4.Then i am selecting the 3rd,4th and 5th checkbox and perform the multi select operation by clicking on button(pick,plan etc). But this time it is failing. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;We are doing some logic in Server side (Webgrid1_InitializePostBack method)&lt;/p&gt;
&lt;p&gt;Even After Clicking the LoadMore icon the Webgrid1.RootTable.Rows is returning the first two rows and the Next three rows which is getting shown in the UI after clicking the LoadMore icon.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Please advice.it is very urgent for us.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;&lt;pre&gt;for (int j = 0; j &amp;lt; rowsCount; j&amp;#43;&amp;#43;)
{
if (WebGrid1.RootTable.Rows[j] != null)
{

if (WebGrid1.RootTable.Rows[j].Type == RowType.Record)

{

for (int i = 0; i &amp;lt; workitemIds.Count; i&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);

workitemObj.Add(workitem);

}

else

{

continue;

}

}

}


&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>