Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

'Uncaught TypeError: $(…).dxWidget is not a function' error occurs

In This Article

This section explains an issue and steps to diagnose and resolve it. If the solution does not work, submit a ticket in our Support Center.

#Issue

The browser fails to render DevExtreme components on the page. Browser console displays the following errors:

  • “Uncaught TypeError: $(…).dxSelectBox is not a function”
  • “Uncaught TypeError: $(…).dxDataGrid is not a function”
  • “Uncaught TypeError: $(…).dxButton is not a function”

The 'Uncaught TypeError' error in the browser console

#Solution

  1. Ensure only one jQuery reference exists before dx.all.js in the root view, such as _Layout.cshtml. For more details, refer to the following help topic: Add DevExtreme to a jQuery Application.

  2. Do not reference the jQuery script on child pages, such as ViewXXX.cshtml, where DevExtreme components exist.

The following help topics show the correct script order: