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?
|
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!
|
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?
|
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.aspxThanks!
|