Ticket Q466599
Visible to All Users

Show a custom form with a map in the WebBrowser control

created 11 years ago

I have a senario that I would like some help on please, rather than giving me links is it possible you could explain (Dummies Guide) how to do the following…
Create a custom form. On this form I would like to add a WebBrowser control (Std Windows Control) On the form I want to link this to existing data which is already in the application.
So on the custom form I have one grid control and one Webbrowser control.
When I open the form i want to see the details of a specic table QuoteHeader…
I then want to use the field POSTCODE that when a user selects a record the postcode is shown in google maps within the webrowser…
We are trying to desperatly seek training in XAF but this is stopping us progress in our demo app.
I have seen a number of guides including the one sent however this is not very user friendly it keeps sending us to links to other areas and it becomes hard to understand.
If you could provide a step by step guide this would be grate…
Thank you in advance…
Vin
If we can get this sorted we can promote the use of XAF within the company…

Comments (1)

    Please NOTE: this is in WINFRM's not ASP

    Answers approved by DevExpress Support

    created 11 years ago (modified 11 years ago)

    Hello Vin,
    Thank you for your interest in our framework.
    I have examined your task and believe that it is best to implement it using pure XAF means without using any custom forms.
    To implement this, do the following:

    1. Create a DashboardView in the Model Editor as per https://documentation.devexpress.com/#Xaf/CustomDocument3296;
    2. Within that dashboard, add a DashboardViewItem targeting QuoteHeader_ListView and a ControlDetailItem pointing to the System.Windows.Forms.WebBrowser type.
    3. Implement a ViewController for a dashboard that will configure the browser control and also handle ListView selection to update the browser accordingly. This idea is described in detail at https://community.devexpress.com/blogs/eaf/archive/2011/03/04/one-more-dive-into-the-xaf-views-structure.aspx
      I have also attached a small sample that illustrates these basic steps.
      P.S.
    4. You can find a list of training classes for XAF at https://community.devexpress.com/blogs/oliver/archive/2014/01/21/new-training-events-announced-for-the-first-half-of-2014.aspx
      If you cannot wait, consider contacting third-parties listed at https://www.devexpress.com/Products/NET/Application_Framework/xaf-community.xml
    5. The How to show custom forms and controls in XAF (Example) article we previously suggested describes a similar solution. It is difficult to provide more detailed instructions than those without knowing what you tried to implement and which points were not user-friendly. So, to be able to help you more effectively, please specify this essential information in your future tickets. Thanks.

      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.