aspnet-8122-common-concepts-client-side-functionality-intellisense-for-client-api.md
DevExpress ASP.NET Controls support IntelliSense for client-side API. This topic describes how to enable IntelliSense depending on the Visual Studio version.
Note
Reporting components ship without definition files for their client-side API members and do not fully support this functionality.
Add the devexpress-web.d.ts , sizzle.d.ts , jquery.d.ts , and knockout.d.ts definition files to the project folder. The last two files contain devexpress-web.d.ts file dependencies.
Add the following string to each script file (or script block) where you will use IntelliSense:
Call a specific DevExpress client object’s Cast method to enable IntelliSense. For example, for the ASPxClientButton control, call the ASPxClientButton.Cast method.
You can now use IntelliSense to browse available DevExpress ASP.NET client-side API.
Add the devexpress-web.d.ts , sizzle.d.ts , jquery.d.ts , and knockout.d.ts definition files to the project folder. The last two files contain devexpress-web.d.ts file dependencies.
For a Web Site project:
Call a specific DevExpress client object’s Cast method to enable IntelliSense. For example, for the ASPxClientButton control, call the ASPxClientButton.Cast method.
You can now use IntelliSense to browse available DevExpress ASP.NET client-side API.
The Cast method allows you to indicate the type of a client-side control instance, which enables IntelliSense for this type.
You can use this method in the following ways.
Convert the event source object passed to a client event handler.
Convert a client object. Use the ClientInstanceName (or ID ) property value to access the client object. For instance, if an ASPxGridView control’s ClientInstanceName property is set to ‘grid’, use the following code to cast the object: