add rows to webgrid in case of enabled batchupdate

4 replies. Last post: November 3, 2010 9:47 PM by Glenn Layaar
Tags :
  • (None)
caMember

hi,

 

i want to add rows to my webgrid from client side using javascript. The example in your kit is working. But in my grid i have enabled batchupdate and grouping. So it is giving error. Please let me know how can i do this.

 

 

thanks and regards

ca

All Replies

Using the client side insert row technique from Client_ProgrammaticEdit sample, I could successfully insert a new row from client side with batchupdate and grouping enabled.

Attached is the test page I am using to test the scenario. The page will require northwind.mdb database which has already provided in the WebGrid sample.

1 attachment
caMember

still i am not able to add. i also i have subrows as heirarchical grid in this webgrid.

will it be a problem.

 

thanks and regards

ca

In my test, for hierarchical grid there will be an error if we try to add a new child row using the same technique programatically from client side. A bug report has been submitted.

Just to clarify we have the same issue, what did the error message in your page? In my test, the error is "'Row.SubTable' is null or not an object".

Based on the bug report response from the developer, in order to successfully add a new row in the child table you will need to expand the parent row and use the parent row ID as the parameter for the child row creation. Attached is the sample demonstration of such scenario. 

All times are GMT -5. The time now is 8:01 AM.
Previous Next