All DevExpress web controls that expose publicly available client-side API now allow any server data to easily be passed to the client, and accessed as values of specifically declared control properties. For this purpose, a web control exposes the CustomJSProperties event, and the JSProperties property, each of which enables you to declare custom properties for the client control. You can specify these property values on the server side and then access them on the client, as you would do with built-in properties.
In this demo, the CustomJSProperties event is used to pass paging information (such as the current page index and the total number of pages) from the server to the client side. This information is used on the client to update label text and toggle the availability of the navigation buttons.