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…
Show a custom form with a map in the WebBrowser control
Answers approved by DevExpress Support
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:
- Create a DashboardView in the Model Editor as per https://documentation.devexpress.com/#Xaf/CustomDocument3296;
- Within that dashboard, add a DashboardViewItem targeting QuoteHeader_ListView and a ControlDetailItem pointing to the System.Windows.Forms.WebBrowser type.
- 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. - 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 - 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.
Please NOTE: this is in WINFRM's not ASP