1. #1
    Sencha User
    Join Date
    Mar 2015
    Posts
    4
    Vote Rating
    0
    Answers
    1
    rahul patil is on a distinguished road

      0  

    Default Unanswered: unable align column value with ExtJS grid

    Hi There,

    I am working on attched extjs grid.
    Capture.JPG
    I would like to align amount coloumn value to right.
    Here extjs is adding amount field values with following html tag:

    <div class="x-grid-cell-inner " style="text-align: left; ;">$879.235</div>

    It is creating inner style with text-align:left and I am unable to align it to right.
    I tried many solutions provided on this site but did not get solution.
    Any help would be highly appreciated.

    Thanks

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,263
    Vote Rating
    486
    Answers
    695
    scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute

      0  

    Default

    Where is your code?

    Have you tried adding align to your column config?
    Code:
    align : 'right',

  3. #3
    Sencha User
    Join Date
    Mar 2015
    Posts
    4
    Vote Rating
    0
    Answers
    1
    rahul patil is on a distinguished road

      0  

    Default Closed

    Thanks Martin,

    I was missing align:'right' it worked.
    Also I applied style:'text-align:right' to align column header.

Thread Participants: 1

Tags for this Thread