|
Rank: Newbie Groups: Member
Joined: 1/23/2008 Posts: 1
|
Dear EO Support, I am having difficulty to locate information in the document on how to append new rows to EO grid on the client-side via Javascript and save the new rows into a database by looping thru the AddedItems once it is posted.
Could you please provide some guidance and point me to the right places?
Thx,
Kevin Ma
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
We have a new build that includes a sample demonstrating how to do that. Please check your private message for download location.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 7/29/2008 Posts: 14
|
I have the same problem. I would like to add new row (item) in a grid via javascript. Something like: grid.appendItem(item). Could you send me the same download location for the sample you mentioned above?
Thank you!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi, The current build on our download page already includes this. So please download it from there now. In addition to adding rows on the client side with JavaScript, you can also use the following function to add a new item on the server side: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Grid.CreateItem.htmlThe code will be something like this:
Code: C#
EO.Web.GridItem newItem = Grid1.CreateItem();
Grid1.Items.Add(newItem);
Thanks!
|
|