Error when Adding A New Record Into Hierarchical grid

2 replies. Last post: March 7, 2010 7:47 PM by x- rookie
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
x- rookieMember

hi,

I have a grid containing three-hierarchical tables, they are Ship(table1) => ShipDailyWorkDetail(table2) => PZ(table3). when i try to add a new row into table3, it throws exception. Table3 containing a WebCombo and two input area.

The scenario is :

when table1 and table2 have existed, i try to add a new row in table3

1)  click on "+" sign to expend the table (according to img1)

2)  click "please click here to add a new record" of table3, there isn't anything but a block of blank    

     (according to img2). At this time i get a javascript error (according to img3)   

     'RelNames'  is null or not an object
     uri: WebGrid_Edit.js

3)  click the "blank area" again, it seems get right (according to img4)

4)  fill the row and enter "shift + enter" to save then

     it throws exception (according to img5)

     error msg is : System.NullReferenceException:object reference not set to an instance of an object

Could you tell me why? And how to resolve it?

Thank you very much.

btw. when i add a new row in table1 ,then table2, finally i add a new row in table3,it works fine.

 

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.

WebGrid version:3.0.5000.751

Browser: IE8

2 attachments
All times are GMT -5. The time now is 5:24 PM.
Previous Next