Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 3.72 KB

File metadata and controls

45 lines (31 loc) · 3.72 KB

XAF - How to show a hyper link (URL, email, etc.) for a business class property

This example shows custom Property Editors that provide access to object fields with an email address or URL as clickable text.

To validate a URL, these editors use a combined RexEx mask. The default regular expression is:

(((http|https|ftp)\://)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*)|([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})

You can use it as is or modify it per your specific needs. Search for Regular Expression in MSDN for more information on how to do this. A double click opens a URL in DetailView of the WinForms project for end-user convenience.

These editors are created for learning purposes only. You can extend them or create your own editors to meet your business needs.

image

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)