Ticket T375130
Visible to All Users

How to check the selected source type in a wizard

created 9 years ago

[DevExpress Support Team: CLONED FROM T369623: Dashboard Datasource Wizard (Custom Open File Dialog)]
Hi Maxim, I am. Again. :-) My Repository works fine now. Thanks for your help.
But an important question I have. How can I determine which data source is selected. I would then filter my repository for matching data types.
Actually, I would look for a list of all controls in the ConnectionPropertiesPageView. So the user selects SQLite, XML and I filter it. Unfortunately, I find nothing in the Help or Documentation.

Thanks
Micha

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

Michael,
It is possible to handle the AuthTypeChanged event of the connectionParametersControl field. In this event handler, you can check the type of the DataConnectionParameters property. Please note that we are using the internal wizard infrastructure that can be changed further. So, it is up to you whether to use this approach or not. I have modified the test sample to illustrate how it works in action.

    Show previous comments (3)
    MW MW
    Michael Witzsche 7 years ago

      Hello Maxim,

      after updating to 17.2.3 the AuthTypeChanged Event of the connetionParametersControl is not available anymore.
      Can you help me?

      Regards,
      Micha

      DevExpress Support Team 7 years ago

        In version 17.2, the Changed event is used instead. You can handle it as shown below. I have attached the upgraded example version to this reply.

        C#
        public ConnectionPropertiesPageViewEx(List<ProviderLookupItem> dataProviders, IWizardRunnerContext context) : base(dataProviders, context) { connectionParametersControl.Changed += RaiseChanged;
        MW MW
        Michael Witzsche 7 years ago

          Constant,

          thank you!

          Micha

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.