﻿<?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 - WebScheduler - Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</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>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Wed, 03 Nov 2010 22:41:20 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Dave,&lt;/p&gt;
&lt;p&gt;Based on my investigation for your sample, you can get your following group collection in the current cell (child).&lt;/p&gt;
&lt;p&gt;Please try to see the following code.&lt;/p&gt;&lt;pre&gt;WebGrid1.GetSelectedObject().ToRowObject().Parent.GetGroupChildRows();&lt;/pre&gt;
&lt;p&gt;Or, You can also obtain the position.&lt;/p&gt;&lt;pre&gt;WebGrid1.GetSelectedObject().ToRowObject().Parent.Position&lt;/pre&gt;
&lt;p&gt;Hope this codes help.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Tue, 02 Nov 2010 23:14:58 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;Here is a sample.  If you expand a grouping and then rick click within one of the cells and select "Fill Down" you will see I am not getting anything for var pos= grid.GetSelectedObject().ToRowObject().ParentPos;&lt;/p&gt;
&lt;p&gt;What I would like to do is call a WebService and pass the group information as well as the value and name of the current cell/column that I am filling down.  Within the WebService I will then make the update in the DB for that grouping.  Because I am doing Virtual Paging, I need to update on the server in order to update the rows that have not yet loaded to the client.&lt;/p&gt;
&lt;p&gt;So I actually need all of the grouping info based on the current cell/row selected.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Dave&lt;/p&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Tue, 02 Nov 2010 22:41:40 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Dave,&lt;/p&gt;
&lt;p&gt;Ok, could you please send me a simple sample that replicates this issue? I will try modify it for you. It seems the structure of WebGrid is different from mine. I need to check if some information can be used for your scenario. Thank you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Tue, 02 Nov 2010 12:44:15 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;When I run:&lt;/p&gt;
&lt;p&gt;var pos= grid.GetSelectedObject().ToRowObject().ParentPos;&lt;br /&gt;alert("pos " &amp;#43; pos);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The result is that pos is blank! &lt;/p&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Tue, 02 Nov 2010 00:39:32 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Dave,&lt;/p&gt;
&lt;p&gt;It is always null because, the row does not have parent. It is a group row. If you inside a child group row, you can get the group row with using ParentPos.&lt;br /&gt;&lt;br /&gt;e.g&lt;/p&gt;&lt;pre&gt;var pos= grid.GetSelectedObject().ToRowObject().ParentPos;
grid.RootTable.GetGroupRows()[pos].GetGroupChildRows();
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Mon, 01 Nov 2010 13:02:18 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;Handy,&lt;/p&gt;
&lt;p&gt;Here is my issue - I am using the &lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;OnRowContextMenu to add a "Fill Down" option.  I am in a row within a group when I click on the "Fill Down" option.  That row does not have any children - it is a child.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;I need to get all of the rows within that specific group.  I tried to getParent based on that row and then GetGroupChildRows() from there, but I get a javascript error - GetParent is returning a null:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;pre&gt;                var grid = ISGetObject("WebGrid1");
                // get the WebGridRow object        // instead of element.
                var currentRow = grid.GetSelectedObject().GetRowObject();
                // get parent row
                var level = currentRow.GetGroupRowLevel();
                alert("Level: " &amp;#43; level);
                var parentRow = currentRow.GetParentRow();
                alert("The parent row of this order is: " &amp;#43; parentRow.KeyValue);

                // get group child rows of        // current row object.
                var groupChildRows = parentRow.GetGroupChildRows();
                var s = "Current selected group row is '" &amp;#43; parentRow.GroupRowText &amp;#43; "'. The child rows contained by this group are: ";
                for (var i = 0; i &amp;lt; groupChildRows.length; i&amp;#43;&amp;#43;) {
                    var row = groupChildRows[i];
                    s &amp;#43;= "Row " &amp;#43; i &amp;#43; ", Type=" &amp;#43; row.Type &amp;#43; ", KeyValue=" &amp;#43; row.KeyValue &amp;#43; " ";
                }
                alert(s);
&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; How do I get ALL of the rows for the Group I am currently in?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;Dave&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Mon, 01 Nov 2010 12:28:15 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;Handy,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am still getting the same error:&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Microsoft JScript runtime error: 'GetGroupChildRows().length' is null or not an object&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;My solution is based on that same example - ClientBinding_VirtualGroupPaging.aspx.  I have just one level of grouping.&lt;/p&gt;
&lt;p&gt;Can you send me your working sample?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Tue, 26 Oct 2010 08:11:39 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Dave,&lt;/p&gt;
&lt;p&gt;I apologized for the last line of code. It should be &lt;strong&gt;selectedRow&lt;/strong&gt; instead of &lt;strong&gt;selectedRows.&lt;br /&gt;&lt;/strong&gt;The code should work well in normal grouping virtual load. In my case, I am using &lt;strong&gt;ClientBinding_VirtualGroupPaging.aspx&lt;/strong&gt;. I am using the code via button click. To use the button, I need to select a group row.&lt;br /&gt;&lt;br /&gt;I am not sure why it does not work in your sample. Does your scenario have more than one grouping level?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Mon, 25 Oct 2010 22:11:58 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;Handy,&lt;/p&gt;
&lt;p&gt;I get an error:&lt;/p&gt;
&lt;p&gt;Microsoft JScript runtime error: 'GetGroupChildRows().length' is null or not an object&lt;/p&gt;
&lt;p&gt;When I use your suggested option:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;br /&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; selectedObject = grid.GetSelectedObject();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; selectedRow = selectedObject.ToRowObject();

alert(selectedRow.GetCells().GetNamedItem(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;"DoseUnitsPerAdminDay"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;).Text);

alert(selectedRow.GetCells().GetNamedItem(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #800000; font-size: 13px"&gt;"DoseUnitsPerAdminDay"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;).Value);

&lt;p&gt;selectedRow.GetGroupChildRows().length;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I would like to set the value of a particular column, but just for the rows currently displayed within the group where I am selecting a cell.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Dave&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/span&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Mon, 25 Oct 2010 06:00:52 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Dave,&lt;/p&gt;&lt;p&gt;You can use snippet code below to get rows expanded in grouping.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;var selectedObject = grid.GetSelectedObject();
var selectedRow = selectedObject.ToRowObject();
selectedRows.GetGroupChildRows().length;&lt;/pre&gt;
&lt;p&gt;You can see that the length is depend on how many rows that you loaded. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Virtual Paging with Grouping - get Rows Expanded</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Virtual-Paging-with-Grouping---get-Rows-Expanded/</link><pubDate>Thu, 21 Oct 2010 21:13:17 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;I am using Virtual Paging with Grouping.  I have a requirement to allow users to set the value of a particular column for all rows currently displayed/expanded.  &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;So, if my Virtual page size is 20 and the user has expanded a group to display 40 rows, if the user clicks on a certain context menu item off of a cell, then all cells currently expanded (40) within that group and that specific column should be updated.&lt;/p&gt;
&lt;p&gt;The functionality is actually like a "Fill Down" in Excel.  So if a user clicks on a cell - they can fill all the cells below (that are currently expanded on the client side) with that value.&lt;/p&gt;
&lt;p&gt;The javascript pseudo code would look something like:&lt;/p&gt;
&lt;p&gt;ExpandedRows = GetSelectedCell.GetExpandedRowsinGrouping&lt;/p&gt;
&lt;p&gt;For Each Expanded Row&lt;/p&gt;
&lt;p&gt;  Row.ThisColumn.Value = GetSelectedCell.Value&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Has anyone done something similar?  Is there a way to get to the list of Expanded Rows within a Group when using Virtual Paing?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Dave&lt;/p&gt;</description></item></channel></rss>