Welcome Guest Search | Active Topics | Sign In | Register

Grid Callback Options
Posted: Thursday, March 4, 2010 6:59:54 PM
Rank: Member
Groups: Member

Joined: 11/13/2009
Posts: 15
I want to make the grid callback from the client so it will show rows from a new datareader. How would I do this? Can I do it without a callback panel?
eo_support
Posted: Thursday, March 4, 2010 7:45:38 PM
Rank: Administration
Groups: Administration

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

The Grid doesn't really care whether you are reloading from a new data reader or the same reader. It just read through the reader to fill all the rows.

If you wish to trigger the update form some UI elements outside of the Grid, for example, an "Update" button, then you will need to use a CallbackPanel or UpdatePanel. If you trigger it from inside the Grid through sorting or paging, then you can set the Grid's RunningMode to Callback and then handle the corresponding event. For example, if you trigger the update by sorting, then you would just handle ColumnSort event.

Thanks!
Posted: Thursday, March 4, 2010 8:13:24 PM
Rank: Member
Groups: Member

Joined: 11/13/2009
Posts: 15
I know that I can trigger a callback using javascript, but can I trigger a CallbackPanel from javascript with out using an element with an ID?
eo_support
Posted: Friday, March 5, 2010 8:51:15 AM
Rank: Administration
Groups: Administration

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

The easiest way is to place a ScriptEvent control in the form, set it as a trigger and then trigger the ScriptEvent control with JavaScript. See here for more information about how to trigger the control:

http://doc.essentialobjects.com/library/1/eo.web.scriptevent.aspx

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.