Hi ,
I am using SmartGWT Pro 2.4 version.
I am trying to set all the fields in a dyanamic form to left alignment. But thing is the date field alone is not aligned to left side.
I set all alignment in ds as well as in my code , but none is working for the dateItem. The text is always aligned to the Right.
I also tried setting an editor type to the specific date field all all formatting like setUseTextField(), setTextAlign() etc. But no use..
Please throw some light on this one..
Thanks
Rajesh
I am using SmartGWT Pro 2.4 version.
I am trying to set all the fields in a dyanamic form to left alignment. But thing is the date field alone is not aligned to left side.
I set all alignment in ds as well as in my code , but none is working for the dateItem. The text is always aligned to the Right.
Code:
FormItem[] frmItems = form.getFields(); for (FormItem item : frmItems) { item.setTitleAlign(Alignment.LEFT); item.setAlign(Alignment.LEFT); } form.getField("deadline").setAlign(Alignment.LEFT);
Code:
<field name="deadline" title="Deadline" type="date" useTextField="true" editorType="date" dateFormatter="toEuropeanShortDate" align="left"/>
Please throw some light on this one..
Thanks
Rajesh
Comment