Back to Devexpress

IntelliSense for Client API

aspnet-8122-common-concepts-client-side-functionality-intellisense-for-client-api.md

latest2.3 KB
Original Source

IntelliSense for Client API

  • Feb 10, 2026
  • 3 minutes to read

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.

Visual Studio 2022

  1. 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.

  2. Add the following string to each script file (or script block) where you will use IntelliSense:

  3. 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.

Visual Studio 2019

  1. 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.

  2. For a Web Site project:

  3. 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.

How to Use the Cast Method

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: