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
MaskInput number format show dash (-) instead of zero

using ultragrid want to format my column. I want to format my number value dash ('-') instead of zero so if number is zero then should show dash ('-') sign else number. what would be the format or MaskInput for specific ultragrid column? sample code would be appreciated pls.


MyNumberFormatted      MyNumberNoFormat
       -                     0
       5                     5
       -                     0
       1                     1

  • 17150
    Offline posted

    Hello Haseeb,

    Thank you for posting in our community.

    In order to ensure that your question is addressed correctly I will need some additional clarifications. Can you please answer the following questions:

    1. Are you using igGrid from the Ignite UI for JavaScript or WebDataGrid from the ASP.NET controls?
    2. What is the column type of this column, is it "string" or "number"?

    Answering these questions is going to be highly appreciated and will help me decide how should we proceed further.

    Looking forward to hearing from you.