Custom OnTheFlyPostback from client side to server side can be called using a function called SendCustomRequest.
This topic will show you how to set SendCustomRequest.
To call SendCustomRequest() from client side
- Drag WebGrid instance into the WebForm.
- Add a client side function on your code.
- You can trigger OnTheFlyPostBack simply by using:
-
JavaScript Copy Code function Grid1_ButtonClick()
{
var grid = ISGetObject("WebGrid1");
grid.SendCustomRequest();
return true;
}
Other Resources
Walkthrough Topics
How-to Topics