Welcome Guest Search | Active Topics | Sign In | Register

Populate Grid items - Client side Options
Camarate
Posted: Tuesday, September 21, 2010 1:30:23 PM
Rank: Advanced Member
Groups: Member

Joined: 9/2/2010
Posts: 120
Hi,

Is there any way to populate a Grid control on the client side? Delete all old items and then load other new items by javascript.

Thanks, Marcelo Camarate
eo_support
Posted: Tuesday, September 21, 2010 3:54:15 PM
Rank: Administration
Groups: Administration

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

You can use these two functions:

http://doc.essentialobjects.com/library/1/jsdoc.public.grid.deleteitem.aspx
http://doc.essentialobjects.com/library/1/jsdoc.public.grid.additem.aspx

However if you just want to repopulate the Grid, it will be much faster if you put the Grid inside a CallbackPanel or use the Callback mode provided by the Grid (by setting the Grid's RunningMode to Callback). Adding rows from the client side the slowest method because it recalculate layout after you update every cell.

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.