Ticket T1031748
Visible to All Users

XAF Blazor - How to colorize the asterisk symbol

created 3 years ago (modified 3 years ago)

[DevExpress Support Team: CLONED FROM T359882: How to colorize (make red) the asterisk symbol accompanying captions of required fields]

Hello,

I am using v21.1.4 and I want to implement same thing(want to change asterisk * default black color to red) in XAF Blazor, so is there any specific way to perform this task?

I have try some of the solutions from this ticket but unfortunately I got unexpected result.

Clipboard-File-1.png
Clipboard-File-2.png

Answers approved by DevExpress Support

created 3 years ago

Hello,

Html Formatting is not supported in XAF Blazor because of a potential security risk. For additional details, please refer to the following Microsoft thread: ASP.NET Core Razor components > Raw HTML.

I am afraid there is no proper way to change the asterisk color at the moment.

Thanks,
Stanley

    Show previous comments (5)
    Andrey K (DevExpress Support) 3 years ago

      Hello,

      At present, we don't have any updates on the matter. Once we have any, we will post a new comment in this thread.

      Thanks,
      Andrey

      YD YD
      Yartik Dhameliya 2 years ago

        Hello

        Is there any update on this?
        How to change the required field asterisk sign in XAF Blazor?

        Till now we were handling it by using the Javascript, but it is not working for appearance attribute items which are visible and invisible based on certain properties value.
        This is Javascript function—

        JavaScript
        const SetRequiredMark = () => { let labels = document.querySelectorAll('label'); for (var i = 0; i < labels.length; i++) { let txt = labels[i].innerText; if (txt.slice(-1) === '*') { labels[i].innerHTML = txt.slice(0, -1) + '<span class="text-danger">*</span>' } } };
        Andrey K (DevExpress Support) 2 years ago

          Hello,

          I certainly don’t want to be the bearer of unpleasant news, but I do want to be 100% honest and upfront with you. Yes, your request is reasonable and I certainly appreciate its overall business value. Unfortunately, our resources are not infinite – and at present – we’re focused on the deliverables outlined in our product development roadmap. Thank you for your understanding.

          Thanks,
          Andrey

          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.