jQuery UI Widgets Forums Grid Align text in edit mode?

Tagged: , ,

This topic contains 1 reply, has 1 voice, and was last updated by  ChaseRLewis73003 7 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Align text in edit mode? #94663

    ChaseRLewis73003
    Participant

    I have columntypes for various data columns with date, number, and textbox values with edit mode enabled. I can set the textbox columntype text alignment with css, but the date & number jqx elements have element level text align properties set to them by javascript. Is there a way to adjust this alignment when a cell enters edit mode for the date & number inputs?

    I could live with the right alignment of the jqxnumberinput, but the left alignment of jqxdatetime looks pretty awkward if the cell is notably wider than the string.

    Align text in edit mode? #94665

    ChaseRLewis73003
    Participant

    Found the answer. Set the ‘textAlign’ value in the initeditor callback.

    initeditor: function(row,cell,editor)
    {
    editor.jqxDateTimeInput({textAlign: ‘center’});
    }

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.