Skip to main content
All docs
V25.2
  • Create a MongoDB Data Source

    Prerequisites

    1. Install the MongoDB.Driver NuGet package.
    2. Register a data connection string provider.

      The Web Dashboard control does not expose connection strings from the configuration file (appsettings.json or Web.config) when used in Designer mode. You need to use a data connection string provider to avoid data leaks and pass connection parameters safely. You can use a predefined data connection string provider or implement a custom provider.

      For additional information, refer to the following help topics:

    Create a MongoDB Data Source via the Web Dashboard UI

    1. In the Dashboard Data Source Wizard, select MongoDB and click Next.

      Create a MongoDB Data Source - Web Dashboard, DevExpress

    2. Specify the data connection and click Next:

      MongoDB Connection - Web Dashboard, DevExpress

      For instructions on how to register data connections in your application, refer to the following help topics:

    3. Configure queries and click Next.

      MongoDB Queries - Web Dashboard, DevExpress

    4. Select data fields and click Finish.

      Select Data Fields - Web Dashboard, DevExpress

    API

    Page Name Page ID Class
    Choose Connection MongoDBDataSourceWizardPageId.ChooseMongoDBDataConnectionPage ChooseMongoDBDataConnectionPage
    Choose Schema MongoDBDataSourceWizardPageId.ChooseMongoDBSchemaPage ChooseMongoDBSchemaPage
    Choose Collections MongoDBDataSourceWizardPageId.ChooseMongoDBCollectionPage ChooseMongoDBCollectionPage
    See Also