The multiple postbacks problem - this is by design. The grid by itself automatically gets back to the
page it is hosted on to load the data. In essence, the page first
loads (Page_Load executes once) and then once the page is loaded, the
grid does a GET request back to the server to get its data (hence the
second request with PostBack = False).
This is done for performance reasons. The AjaxCallBackMode property is
what you need to check if this is the case, e.g.
Page_Load
if (!Page.IsPostBack && JQGrid1.AjaxCallBackMode == AjaxCallBackMode.None)
{
// init code here
}
We are working on Web-Service mode, where you will be able to point the request to another service and get rid of the double event, but unfortunately currently this is the only way to do it.
If we maintain the ViewState and PostBacks, we will not be able to get this level of performance, so we just needed to choose one of both approaches.
Please, let us know if this helps.
Kind Regards,
NoelT
Trirand Inc. Support Team