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
250
I want to have format comma igGrid .
posted

I want to have format comma igGrid. This is an image.

Thank you for advice.

Parents Reply
  • 23953
    Offline posted in reply to sulada sudjai

    Hello Sulada,

    Use the columnCssClass property to add a class to the column cells and in the class apply text alignment right.

    There is an example:

    .align-right {
        text-align:right;
    }
    
    $(".selector").igGrid({
        autoGenerateColumns: false,
        columns: [
            { headerText: "SafetyStockLevel", key: "SafetyStockLevel", dataType: "number", 
    width: "200px", format: "###,###,###.##", columnCssClass: "align-right"}
        ]            
    });
    

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc.

Children