﻿<?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 - Unbound Hierarchical Webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unbound-Hierarchical-Webgrid/</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>Unbound Hierarchical Webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unbound-Hierarchical-Webgrid/</link><pubDate>Fri, 20 Nov 2009 02:45:44 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt;   Sorry to tell you, but there are no codes Event that can trigger to refresh the WebGrid, since we are using Unbound WebGrid. Because with Unbound WebGrid we are not allowed to do certain procedures, e.g. Refresh, Filter, Grouping, etc, since it has a static data where we set the data manually on the server side.&lt;/p&gt;
&lt;p&gt;   My advices, if you persist on using an Unbound WebGrid, we can using a filter query on database when the button is invoked (e.g SELECT * from Invoice_table where &amp;lt;&amp;lt;Condition&amp;gt;&amp;gt;), but, this is not a flyPostBack, it is a FullPostBack.&lt;/p&gt;
&lt;p&gt;Or, you can just use a Bound WebGrid as a second option. On Bound WebGrid, we can use a Grouping and Filter function to get a similiar output as you requested or if you want to, you have to divide the database based on your category. If so, then we can make it as a hierarchical WebGrid.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Andi Santoso&lt;/p&gt;</description></item><item><title>Unbound Hierarchical Webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unbound-Hierarchical-Webgrid/</link><pubDate>Thu, 19 Nov 2009 08:29:22 GMT</pubDate><dc:creator>msilka</dc:creator><description>&lt;p&gt;Andi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you for your prompt response.&lt;/p&gt;
&lt;p&gt;What I need to do is to filter my SQL view then load the contents into the grid.&lt;/p&gt;
&lt;p&gt;On the client side I execute this code to refresh the grid to do ontheflypostback.&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;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;"wbgResults"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); &lt;p&gt;grid.AddInput(&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"ANALYZE"&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;"YES"&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;"ANALYZE"&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;"YES"&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; 
&lt;p&gt;grid.RootTable.UpdateUI();&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;p&gt;grid.Refresh();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now, what grid EVENT shall contain the code that will generate my rows?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I also attached a modified form with what I am intending to do.&lt;/p&gt;&lt;p&gt;The grid does not refresh itself even though I placed a ClientAction.Refresh() in the code.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please advise&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;</description></item><item><title>Unbound Hierarchical Webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unbound-Hierarchical-Webgrid/</link><pubDate>Thu, 19 Nov 2009 06:14:03 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Mark Silka,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;     I have created a sample (VB) of WebGrid using Unbound Hierarchical and retrieve the database from Microsoft SQL Server.&lt;/p&gt;
&lt;p&gt;     First, we need to make a connection to SQL database and set a query to retrieve the data. Then, we have to assign each column to specific variable. After that, from this variable we can assign the value from database into WebGrid manually(Unbound).&lt;/p&gt;
&lt;p&gt;For futher information, you can see my sample.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank You,&lt;/p&gt;
&lt;p&gt;Andi Santoso&lt;/p&gt;</description></item><item><title>Unbound Hierarchical Webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unbound-Hierarchical-Webgrid/</link><pubDate>Wed, 18 Nov 2009 16:14:04 GMT</pubDate><dc:creator>msilka</dc:creator><description>&lt;p&gt;I have an SQL View and I wish to make an Unbound Hierarchical Webgrid from it.&lt;/p&gt;
&lt;p&gt;The table is as such&lt;/p&gt;
&lt;p&gt;InvoiceID   CustomerID  InvoiceDate  LineItemNumber ItemCat1 ItemCat2 ItemCat3 ItemCat4 &lt;/p&gt;
&lt;p&gt;It is basically and invoice detail table with invoice header info on each line.&lt;/p&gt;
&lt;p&gt;This is because I do searches on both items in the header table and detail table.&lt;/p&gt;
&lt;p&gt;This one table speeds up my search.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Now, I want to use an unbound hierarchical grid and fill it with these items.&lt;/p&gt;
&lt;p&gt;When I do a the client action for Grid.Refresh(); in which grid procedure do I set up the parent and child table rows?&lt;/p&gt;
&lt;p&gt;I am using Visual Basic for my programming language.&lt;/p&gt;
&lt;p&gt;Here is an example&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The search is for Dates between 11/1/2009-11/18/2009 with a matching ItemCat1&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;InvoiceID   CustomerID  InvoiceDate  LineItemNumber ItemCat1 ItemCat2 ItemCat3 ItemCat4&lt;/p&gt;
&lt;p&gt;1234           99                11/18/2009      1                        x                                     &lt;/p&gt;
&lt;p&gt;1234           99                11/18/2009      3                        x&lt;/p&gt;
&lt;p&gt;3456           1001            11/16/2009      5                        x&lt;/p&gt;
&lt;p&gt;4554           11                 11/12/2009     1                        x&lt;/p&gt;
&lt;p&gt;4554           11                  11/12/2009    2&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The webgrid would like look this&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;InvoiceID  CustomerID  InvoiceDate&lt;/p&gt;
&lt;p&gt;1234                99             11/6/2009&lt;/p&gt;
&lt;p&gt;                    LineItemNumber    ItemCat1 ItemCat2 ItemCat3 ItemCat4&lt;/p&gt;
&lt;p&gt;                               1                      x&lt;/p&gt;
&lt;p&gt;                               3                      x&lt;/p&gt;
&lt;p&gt;InvoiceID  CustomerID  InvoiceDate&lt;/p&gt;
&lt;p&gt;3456                1001             11/18/2009&lt;/p&gt;
&lt;p&gt;                    LineItemNumber    ItemCat1 ItemCat2 ItemCat3 ItemCat4&lt;/p&gt;
&lt;p&gt;                               5                     x&lt;/p&gt;
&lt;p&gt;InvoiceID  CustomerID  InvoiceDate&lt;/p&gt;
&lt;p&gt;4554               11             11/12/2009&lt;/p&gt;
&lt;p&gt;                    LineItemNumber    ItemCat1 ItemCat2 ItemCat3 ItemCat4&lt;/p&gt;
&lt;p&gt;                               1                      x&lt;/p&gt;
&lt;p&gt;                               2                      x&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>