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
|
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.aspxhttp://doc.essentialobjects.com/library/1/jsdoc.public.grid.additem.aspxHowever 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
|