<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to use TreeGridContainer</title><link>https://www.aras.com/community/f/development/37617/how-to-use-treegridcontainer</link><description>Hi Team 
 I am trying to use the TreeGridContainer on a form, but the documentation is a bit sparse. 
 I was trying to go through the blog written by Skyler: https://community.aras.com/b/english/posts/building-tree-grid-containers 
 but he unfortunately</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to use TreeGridContainer</title><link>https://www.aras.com/community/thread/8789?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 13:51:13 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:52e9fff5-6b5e-4960-aa78-99d8eb279ea7</guid><dc:creator>Riaan H</dc:creator><description>&lt;p&gt;Thanks Alaxala and Angela, together we shall conquer!&amp;nbsp; ;-)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For some reason my &amp;quot;var exampleGrid = null;&amp;quot; only works in the html on the form.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The rest of your suggestion is working great.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So many possible uses for this grid, but I will start slowly, first only as a passive view. Later on with actions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use TreeGridContainer</title><link>https://www.aras.com/community/thread/8788?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 12:47:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:7449bcdc-dc53-4f42-97b4-f928cc6a79b4</guid><dc:creator>alaxala1</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use TreeGridContainer</title><link>https://www.aras.com/community/thread/8787?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 12:29:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:08868ea9-4d81-48d1-9789-4dcf2ab7ef14</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Riaan,&lt;/p&gt;
&lt;p&gt;happy to see that finally someone was able to get the sample running!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The sample was one of the ideas recommended to me regarding this question:&amp;nbsp;&lt;a href="/f/development/37134/is-there-a-lightweight-way-to-display-tree-grid-data-in-forms"&gt;https://community.aras.com/f/development/37134/is-there-a-lightweight-way-to-display-tree-grid-data-in-forms&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But I so far haven&amp;acute;t tried to understand the sample. I wasn&amp;acute;t sure how to get the &amp;quot;levels&amp;quot;. In my case I used a custom tree to address the problem.&lt;/p&gt;
&lt;p&gt;But right now I work on a different idea, where I maybe will use this concept. I want to have two items in one Form in parallel, including the relationships of the two items. Happy to see I know have an additional starting point :) Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use TreeGridContainer</title><link>https://www.aras.com/community/thread/8785?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 08:57:12 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:9320f3d4-7464-462b-98d9-4eb56749025f</guid><dc:creator>Riaan H</dc:creator><description>&lt;p&gt;Ahha! I figured it out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the full code to get the grid running, I haven&amp;#39;t optimised it, there may be unnecessary steps, but it is working.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;In the html of the HTML element on the form include the following : (adapted from ECO impactGrid)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;var exampleGrid = null;&lt;/p&gt;
&lt;p&gt;function onTabSelected() {&lt;br /&gt; return; // not used&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;function setEditMode(item) {&lt;br /&gt; // responds to the windows top toolbar actions&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;function setViewMode(item) {&lt;br /&gt; // responds to the windows top toolbar actions&lt;br /&gt; exampleGrid.grid.turnEditOff();&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;var onload_handler = function() {&lt;br /&gt; if (window.exampleGrid) {&lt;br /&gt; exampleGrid = new exampleGrid();&lt;br /&gt; exampleGrid.loadHTML();&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; window.addEventListener(&amp;quot;load&amp;quot;, onload_handler);&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The method &amp;quot;example_gridManager&amp;quot; should be:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;exampleGrid = function exampleGridFunc() {};&lt;/p&gt;
&lt;p&gt;exampleGrid.prototype = new BaseTreeGrid();&lt;/p&gt;
&lt;p&gt;exampleGrid.prototype.initialize = function () {&lt;br /&gt; &lt;br /&gt;var xmlString = `&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;table font=&amp;quot;Microsoft Sans Serif-8&amp;quot; sel_bgColor=&amp;quot;steelbue&amp;quot; sel_TextColor=&amp;quot;white&amp;quot; header_BgColor=&amp;quot;buttonface&amp;quot; expandroot=&amp;quot;true&amp;quot; expandall=&amp;quot;false&amp;quot; treelines=&amp;quot;1&amp;quot; editable=&amp;quot;false&amp;quot; draw_grid=&amp;quot;true&amp;quot; multiselect=&amp;quot;true&amp;quot; column_draggable=&amp;quot;false&amp;quot; enableHtml=&amp;quot;false&amp;quot; enterAsTab=&amp;quot;false&amp;quot; bgInvert=&amp;quot;true&amp;quot;&lt;br /&gt; xmlns:msxsl=&amp;quot;urn:schemas-microsoft-com:xslt&amp;quot;&lt;br /&gt; xmlns:aras=&amp;quot;&lt;a href="http://www.aras.com"&gt;&amp;quot;&amp;gt;http://www.aras.com&amp;quot;&lt;/a&gt;&lt;br /&gt; xmlns:usr=&amp;quot;urn:the-xml-files:xslt&amp;quot;&amp;gt;&lt;br /&gt; &amp;lt;thead&amp;gt;&lt;br /&gt; &amp;lt;th align=&amp;quot;c&amp;quot;&amp;gt;Part Number&amp;lt;/th&amp;gt;&lt;br /&gt; &amp;lt;th align=&amp;quot;c&amp;quot;&amp;gt;Revision&amp;lt;/th&amp;gt;&lt;br /&gt; &amp;lt;th align=&amp;quot;c&amp;quot;&amp;gt;Sequence&amp;lt;/th&amp;gt;&lt;br /&gt; &amp;lt;th align=&amp;quot;c&amp;quot;&amp;gt;Quantity&amp;lt;/th&amp;gt;&lt;br /&gt; &amp;lt;/thead&amp;gt;&lt;br /&gt; &amp;lt;columns&amp;gt;&lt;br /&gt; &amp;lt;column width=&amp;quot;220&amp;quot; edit=&amp;quot;NOEDIT&amp;quot; align=&amp;quot;l&amp;quot; order=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt; &amp;lt;column width=&amp;quot;60&amp;quot; edit=&amp;quot;NOEDIT&amp;quot; align=&amp;quot;c&amp;quot; order=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt; &amp;lt;column width=&amp;quot;60&amp;quot; edit=&amp;quot;NOEDIT&amp;quot; align=&amp;quot;c&amp;quot; order=&amp;quot;2&amp;quot; sort=&amp;quot;numeric&amp;quot;/&amp;gt;&lt;br /&gt; &amp;lt;column width=&amp;quot;60&amp;quot; edit=&amp;quot;NOEDIT&amp;quot; align=&amp;quot;c&amp;quot; order=&amp;quot;3&amp;quot; sort=&amp;quot;numeric&amp;quot;/&amp;gt;&lt;br /&gt; &amp;lt;/columns&amp;gt;&lt;br /&gt; &amp;lt;menu&amp;gt;&lt;br /&gt; &amp;lt;emptytag/&amp;gt;&lt;br /&gt; &amp;lt;/menu&amp;gt;&lt;br /&gt; &amp;lt;tr level=&amp;quot;0&amp;quot; icon0=&amp;quot;../images/Part.svg&amp;quot; icon1=&amp;quot;../images/Part.svg&amp;quot; class = &amp;quot;dragClass&amp;quot;&amp;gt;&lt;br /&gt; &amp;lt;userdata key=&amp;quot;gridData_rowItemID&amp;quot; value=&amp;quot; &amp;quot; /&amp;gt;&lt;br /&gt; &amp;lt;td&amp;gt;First&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;td&amp;gt;A&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;td&amp;gt;10&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;td&amp;gt;2&amp;lt;/td&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;tr level=&amp;quot;1&amp;quot; icon0=&amp;quot;../images/Part.svg&amp;quot; icon1=&amp;quot;../images/Part.svg&amp;quot; class = &amp;quot;dragClass&amp;quot;&amp;gt;&lt;br /&gt; &amp;lt;userdata key=&amp;quot;gridData_rowItemID&amp;quot; value=&amp;quot; &amp;quot; /&amp;gt;&lt;br /&gt; &amp;lt;td&amp;gt;Second&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;td&amp;gt;A&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;td&amp;gt;10&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;td&amp;gt;6&amp;lt;/td&amp;gt;&lt;br /&gt; &amp;lt;/tr&amp;gt;&lt;br /&gt; &amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;`;&lt;/p&gt;
&lt;p&gt;//debugger;&lt;br /&gt;this.grid.InitXML(xmlString);&lt;br /&gt;document.getElementById(&amp;quot;loadingInProgress&amp;quot;).style.display = &amp;quot;none&amp;quot;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Getting this very last line took me a couple of hours of debugging to finally get it!&lt;/p&gt;
&lt;p&gt;Now I can start playing!!!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;Riaan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>