﻿<?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 - Error when Adding A New Record Into Hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-Adding-A-New-Record-Into-Hierarchical-grid/</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>Error when Adding A New Record Into Hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-Adding-A-New-Record-Into-Hierarchical-grid/</link><pubDate>Sun, 07 Mar 2010 19:47:54 GMT</pubDate><dc:creator>x-rookie</dc:creator><category>Hierarchical</category><description>&lt;p&gt;Thank you for your hard work! I will try to write a demo that could run on your end then attach it as soon as possible.&lt;/p&gt;</description></item><item><title>Error when Adding A New Record Into Hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Error-when-Adding-A-New-Record-Into-Hierarchical-grid/</link><pubDate>Fri, 05 Mar 2010 05:23:40 GMT</pubDate><dc:creator>yudi</dc:creator><category>Hierarchical</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Thank you for the sent screenshots and code. It really does help to figure out what the problem is.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I was unable yet&amp;nbsp;to run your sent sample to run on my end. I think I will need to re-configure some lines in the code to make it work on my end. however, I suspect that the issue is happen because you are attempting to add a new record on a PZ table (table3) where the relation of this new row is not available yet (there is no parent record in the ShipDailyWorkDetail (table2) table).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This hypothesis comes from your statement that says&lt;/span&gt;&lt;/p&gt;&lt;blockquote&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;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&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/WebGrid/Error-when-Adding-A-New-Record-Into-Hierarchical-grid/</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></channel></rss>