Hi there,
I'm using a masked text box as an incell editor for a grid. I want to right-align the value in the editor field. Please see the attached PNG file for how it looks currently. I tried adding a class to the input field that right-aligned the value, but this right aligned the value+spaces to the right. I'd like the last digit in the value to be over to the right edge of the input.
Pertinent code is:
and
Any way to do this? Thanks! :)
I'm using a masked text box as an incell editor for a grid. I want to right-align the value in the editor field. Please see the attached PNG file for how it looks currently. I tried adding a class to the input field that right-aligned the value, but this right aligned the value+spaces to the right. I'd like the last digit in the value to be over to the right edge of the input.
Pertinent code is:
columns: [ { field: "accounting_category", title: "CATEGORY" }, { field: "gl_code", title: "GL CODE", editor: glCodeMaskedTextEditor } ]and
function glCodeMaskedTextEditor(container, options) { $('<input class="gl-code-edit" data-text-field="gl_code"
data-value-field="gl_code_id" data-bind="value:' + options.field + '"/>') .appendTo(container) .kendoMaskedTextBox({ mask: "99999999999999999999", promptChar: " " });}Any way to do this? Thanks! :)
