How to: Obtain Server Data From the Client

This example demonstrates how to obtain server data from the client. A temporary client property - cpPageIndex, is declared within the ASPxGridView.CustomJSProperties event handler. This property holds the index of the page currently active, and can be accessed on the client.

protected void ASPxGridView1_CustomJSProperties(object sender,
   DevExpress.Web.ASPxGridViewClientJSPropertiesEventArgs e) {
    e.Properties["cpPageIndex"] = ASPxGridView1.PageIndex;