Hi, I use Ultragrid and Ultraformattedtexteditor als EditorComponent for a cell which contains text and weblinks.
The text could be like that:
"Here is infragistics webiste www.infragistics.com now there is more text with another link e.g. a longer link from this side like that https://es.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/p/addpost and after that more text."
Now: I search with a very long regexpattern for the links, replace the links with <a href... > and the formattedtexteditor shows die links as links in most cases.
1.) First problem: 1 In my example here, I replace www.infagistics.com two times.How can I manage this?
2.) I have a very long link which my regex knows and replaces correkt, but the cell doesn't show as a link. In the cell i can see the <a href...> So I guess you take another pattern than me. Or the cell can't show the link because it is to long? Are there any maxlength-rules for links in ultraformattedtexteditor?
Can I change the pattern in a property? I didn't find it.
Here is mine:
Private Const m_cstrRegExPatternForURL as String = "((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)"
Thank you so much.
Hello Judith,
Thank you for posting to our forum.
I did some research for your requirement and found that we do not have any in build method to search the link in the substring. That could be a new product idea for the infragistics.Also about your second requirement, no there is no max length rule in ultraformattedtexteditor you can have any number of character in the cell.
You can suggest new product ideas for future versions (or vote for existing ones) at <ideas.infragistics.com>.
Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. You can also link back to this thread for additional details.
Thank you in advance to submitting your product idea.
Thank you for your answer.
But the last question is open.
1) What is in your opinion the reason why my Long link doesn't has a link as the others?
2) How can I set the regex-pattern? My pattern allows the link an unfortunately your ultraformattedtexteditor doesn't... ?
I now know that the & is the problem? Could this be?My link is like that:
https://www.bundesbank.de/Navigation/DE/Statistiken/Zeitreihen_Datenbanken/Gesamtwirtschaftliche_Rechenwerke/gesamtwirtschaftliche_rechenwerke_details_value_node.html?tsId=BBNZ1.A.DE.N.G.0000.A&listId=www_v36_2014_bip
Can you check if it works with ultraformattedtexteditor? And if yes, show me the way or the property that i have to take. Thanks a lot!!
We use 15.2 WinForms Ultragrid Ultraformattedtexteditor
Hello ,
Thank you for the update.
For about long link and & in the regex causing issue , the best way for us to assist you is if you provide a small isolated sample that we can run and debug to find the cause of the issue.
Looking foerawrd to hear you back.