Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
640
UltraGrid - Ultraformattedtexteditor - URLs
posted

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://www.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.

Parents
  • 7375
    Offline posted


    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.

Reply Children