﻿<?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 - Hierarchical</title><link>http://www.intersoftsolutions.com/Community/Tags/Hierarchical/</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>Prevent RowChecker from checking rows that are not expanded in a hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/Tags/Hierarchical/</link><pubDate>Fri, 13 Sep 2013 17:12:55 GMT</pubDate><dc:creator>mlacy1358</dc:creator><category>WebGrid</category><category>Hierarchical</category><category>RowChecker</category><description>&lt;p&gt;We are using the latest version of the Intersoft WebGrid.  We have a self-referencing hierarchical grid that has RowChecker enabled so there is a "check all" check box in the column header of the checkbox column that when checked will check all of the rows in the grid.   The issue is that this is a hierarchical grid and so at any time, one folder may be expanded showing the child rows but all the other parent rows are collapsed (so their child rows are not visible).  When the RowChecker "check all" checkbox in the column header is selected, all the rows are checked, even those that are collapsed and so are not visible.  Is there a way to tell the RowChecker to only check the child rows that are visible and to not check the child rows that are in a collapsed state and so are not visible?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Does new WebGrid support sorting?</title><link>http://www.intersoftsolutions.com/Community/Tags/Hierarchical/</link><pubDate>Fri, 22 Oct 2010 04:01:28 GMT</pubDate><dc:creator>Eric</dc:creator><category>WebGrid</category><category>Hierarchical</category><category>Hierarchical Grid</category><category>sort</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;We have a WebGrid which hierarchical content (tree like), loading subnodes on demand. Sorting is enabled. When clicking on the header, the sort up, sort down arrows appear, but the content is not resorted - nothing happens.&lt;/p&gt;
&lt;p&gt;I would like to get the content resorted, only within each node of course. How would I do this?&lt;/p&gt;
&lt;p&gt;We are using WebGrid version 6.0.7200.220 and I wonder if this is supported in a newer version and it would be worth upgrading. Please tell me if a newer version supports this natively. If not, how should I implement this?&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item><item><title>Sample for WebGrid tree view wanted</title><link>http://www.intersoftsolutions.com/Community/Tags/Hierarchical/</link><pubDate>Wed, 01 Sep 2010 05:42:24 GMT</pubDate><dc:creator>Eric</dc:creator><category>InitializeSelfReferenceDataSource</category><category>Hierarchical</category><category>InitializeDataSource</category><category>tree view</category><category>parent-child</category><category>sample</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need a sample for a simple tree-view using WebGrid version 6.0.7200.218.&lt;/p&gt;
&lt;p&gt;It should use the event &lt;span style="font-size: 13px"&gt;InitializeSelfReferenceDataSource to load the next node level data. And InitializeDataSource should load the root node data. And the columns are created in the code, not hardcoded in aspx page.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;I think I have everything correct (too big to post here), but I just don't get the "plus" image to expand a node. How does WebGrid know if it needs to draw this plus image? What might be missing?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;In any case such a sample would be great. I found the samples that use EnableLoadOnDemand (not supported in mentioned version) and the found samples mostly use data connectors in the aspx file, instead of creating the data in InitializeDataSource.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Thanks&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Error when Adding A New Record Into Hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/Tags/Hierarchical/</link><pubDate>Thu, 04 Mar 2010 04:55:42 GMT</pubDate><dc:creator>x-rookie</dc:creator><category>Hierarchical</category><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;I have a grid containing three-hierarchical tables, they are Ship(table1) =&amp;gt; ShipDailyWorkDetail(table2) =&amp;gt; PZ(table3). when i try to add a new row into table3, it throws exception. Table3 containing a WebCombo and two input area.&lt;/p&gt;
&lt;p&gt;The scenario is :&lt;/p&gt;
&lt;p&gt;when table1 and table2 have existed, i try to add a new row in table3 &lt;/p&gt;
&lt;p&gt;1)  click on "&amp;#43;" sign to expend the table (according to img1)&lt;/p&gt;
&lt;p&gt;2)  click "please click here to add a new record" of table3, there isn't anything but a block of blank     &lt;/p&gt;
&lt;p&gt;     (according to img2). At this time i get a javascript error (according to img3)    &lt;/p&gt;
&lt;p&gt;     'RelNames'  is null or not an object&lt;br /&gt;     uri: WebGrid_Edit.js &lt;/p&gt;
&lt;p&gt;3)  click the "blank area" again, it seems get right (according to img4)&lt;/p&gt;
&lt;p&gt;4)  fill the row and enter "shift &amp;#43; enter" to save then&lt;/p&gt;
&lt;p&gt;     it throws exception (according to img5)&lt;/p&gt;
&lt;p&gt;     error msg is : System.NullReferenceException:object reference not set to an instance of an object&lt;/p&gt;
&lt;p&gt;Could you tell me why? And how to resolve it?&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;btw. when i add a new row in table1 ,then table2, finally i add a new row in table3,it works fine.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;All pictures and code are in the attachment. I keep down almost all the code, so it maybe looks a little complex. I'm sorry for it if that incommode you.&lt;/p&gt;
&lt;p&gt;WebGrid version:3.0.5000.751&lt;/p&gt;
&lt;p&gt;Browser: IE8&lt;/p&gt;</description></item><item><title>WebGrid Hierarchical Data with ISLinqDataSource or LinqDataSources</title><link>http://www.intersoftsolutions.com/Community/Tags/Hierarchical/</link><pubDate>Mon, 15 Feb 2010 21:50:34 GMT</pubDate><dc:creator>cymdiaz</dc:creator><category>Hierarchical</category><category>webgrid 7</category><category>LinqDataSource</category><description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;Can you tell me how to populate a hierarchical datagrid using LinqDataSources?  Visual Studio 2010 RC, Windows 7,.  As far as I can tell from the documentation this feature is not supported.  I don't think this can be true for WebGrid 7, I must be mistaken, but cannot find how to do it.  &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Carlos&lt;/p&gt;</description></item><item><title>Hierarchical Grid bound to WCF Service</title><link>http://www.intersoftsolutions.com/Community/Tags/Hierarchical/</link><pubDate>Tue, 15 Dec 2009 13:09:20 GMT</pubDate><dc:creator>Michael</dc:creator><category>WCF</category><category>Hierarchical</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have bound WebGrid to DataSet. I get DataSet from a WCF Service.&lt;/p&gt;
&lt;p&gt;Please have a look on attached picture.&lt;/p&gt;
&lt;p&gt;In Listbox you can see all rows. &lt;/p&gt;
&lt;p&gt;But the WebGrid shows only the roottable and the first childtable! Why?&lt;/p&gt;
&lt;p&gt;I can reproduce this behavoir only if i get DataSet from a WCF Service! It works, if i copy the method &lt;em&gt;ProductHierarchy_Sel()&lt;/em&gt; to local page.&lt;/p&gt;
&lt;p&gt;What could be the problem?&lt;/p&gt;&lt;pre&gt;        DataSet ds2;
        protected void Page_Load(object sender, EventArgs e)
        {
            using (proxyRelays.MasterdataClient proxyMasterdata = new QS_Client.proxyRelays.MasterdataClient())
            {
                ds2 = proxyMasterdata.ProductHierarchy_Sel();
            }
            foreach (DataRow family in ds2.Tables["ProductFamily"].Rows)
            {
                ListBox1.Items.Add(family["Name"].ToString());
                foreach (DataRow nr in family.GetChildRows("relFamilyContactNr"))
                {
                    ListBox1.Items.Add("...." &amp;#43; nr["Name"].ToString());
                    foreach (DataRow var in nr.GetChildRows("relContactNrContactVariant"))
                    {
                        ListBox1.Items.Add("........" &amp;#43; var["Name"].ToString());
                        foreach (DataRow c in var.GetChildRows("relContactVariantCoil"))
                        {
                            ListBox1.Items.Add("..........." &amp;#43; c["Name"].ToString());
                        }
                    }
                }
            }
        }

        protected void grd2_InitializeDataSource(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
        {
            e.DataSource = ds2;
            grd2.DataMember = "ProductFamily";
            grd2.RootTable.DataMember = "ProductFamily";
        }

        protected void grd2_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
        {
            if (!Page.IsPostBack)
            {
                grd2.ClearCachedDataSource();
                grd2.RetrieveHierarchicalStructure();
            }
        }&lt;/pre&gt;

&lt;p&gt;The method &lt;em&gt;ProductHierarchy_Sel()&lt;/em&gt; &lt;/p&gt;&lt;pre&gt;        public DataSet ProductHierarchy_Sel()
        {
            SqlConnection cn = new SqlConnection();
            cn.ConnectionString = ConfigurationManager.ConnectionStrings["QS-SYS"].ConnectionString;
            cn.Open();

            using (cn)
            {
                SqlCommand cmd = new SqlCommand();
                cmd.Connection = cn;
                cmd.CommandText = "EXEC Product.Family_SelWithDep;EXEC Product.ContactNr_SelWithDep;EXEC Product.ContactVariant_SelWithDep;EXEC Product.Coil_SelWithDep";

                SqlDataAdapter da = new SqlDataAdapter();
                da.SelectCommand = cmd;
                da.TableMappings.Add("Table", "ProductFamily");
                da.TableMappings.Add("Table1", "ProductContactNr");
                da.TableMappings.Add("Table2", "ProductContactVariant");
                da.TableMappings.Add("Table3", "ProductCoil");

                DataSet ds = new DataSet();
                da.Fill(ds);
                da.FillSchema(ds, SchemaType.Mapped);

                DataRelation rel;
                rel = new DataRelation("relFamilyContactNr",
                    ds.Tables["ProductFamily"].Columns["ID"],
                    ds.Tables["ProductContactNr"].Columns["FamilyID"]);
                ds.Relations.Add(rel);

                rel = new DataRelation("relContactNrContactVariant",
                    ds.Tables["ProductContactNr"].Columns["ID"],
                    ds.Tables["ProductContactVariant"].Columns["ContactNrID"]);
                ds.Relations.Add(rel);

                rel = new DataRelation("relContactVariantCoil",
                    ds.Tables["ProductContactVariant"].Columns["ID"],
                    ds.Tables["ProductCoil"].Columns["ContactVariantID"]);
                ds.Relations.Add(rel);

                return ds;
            }
        }&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;</description></item><item><title>Can't insert Childrecords since Update October 2009 Hotfix</title><link>http://www.intersoftsolutions.com/Community/Tags/Hierarchical/</link><pubDate>Thu, 08 Oct 2009 12:19:04 GMT</pubDate><dc:creator>Michael</dc:creator><category>SmartBatchUpdate</category><category>Hierarchical</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Today i have installed October 2009 Hotfix.&lt;/p&gt;
&lt;p&gt;Now i can't insert Childrecords! I get always following Errormessage: &lt;strong&gt;&lt;em&gt;Object reference not set to an instance of an object&lt;/em&gt;&lt;/strong&gt;. I have not made any changes in the meantime.&lt;/p&gt;
&lt;div id="result_box" dir="ltr"&gt;I was able to reproduce the error with attached sample.&lt;/div&gt;
&lt;div dir="ltr"&gt; &lt;/div&gt;
&lt;div dir="ltr"&gt;&lt;div id="result_box" dir="ltr"&gt;Thanks for the speedy treatment. &lt;/div&gt;It is really important.&lt;/div&gt;
&lt;div dir="ltr"&gt; &lt;/div&gt;
&lt;div dir="ltr"&gt;Michael&lt;/div&gt;</description></item></channel></rss>