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
20
Right-aligning cell values in igPivotGrid
posted

Hi,

We are using pivot grid to display currency values. We have a flat data source. We were able to format the values in numeric format (ie. 12,345.50) using the technique described in "How can I format a value in PivotGrid? Currency, for example." forum question.

But we would like to align cell values to right as well, since they are numeric values. Can you describe how we can align cell values to right?

Thank you very much.

Parents
No Data
Reply
  • 29417
    Verified Answer
    Offline posted

     Hello Bedri, 

    Thank you for posting in our forum. 

    One possible solution would be to use the ui-record class and add the “text-align:right;” setting . This class will be applied for all records in the grid so all values will be aligned to the right.

    The class could look like this:

     

    tbody.ui-ig-record> tr> td

                                    {

                                    text-align:right;

                                    }

     

    Let me know if this approach would work in your scenario.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://es.infragistics.com/support

     

Children