Welcome Guest Search | Active Topics | Sign In | Register

Add new row to EO Grid via Javascript Options
Kevin
Posted: Friday, August 15, 2008 9:58:57 AM
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
eo_support
Posted: Friday, August 15, 2008 10:10:02 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,090
Hi,

We have a new build that includes a sample demonstrating how to do that. Please check your private message for download location.

Thanks!
the kid
Posted: Tuesday, September 9, 2008 6:25:24 AM
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!
eo_support
Posted: Tuesday, September 9, 2008 8:31:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,090
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.html

The code will be something like this:

Code: C#
EO.Web.GridItem newItem = Grid1.CreateItem();
Grid1.Items.Add(newItem);


Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.