Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Custom JavaScript Properties

Hercules Unchained Directed by: Pietro Francisci
Year: 1959

While negotiating peace between two brothers contesting the throne of Thebes, an amnesiac Hercules is seduced by the evil Queen Omphale.

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.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxMultiUseControlsDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxMultiUseControlsDemos