SmartGWT version 4.1d July 01 2013
We experienced an issue with the DateChooser widget recently when we upgraded to SmartGWT 4.1d. We for the first time saw that the DateChooser widget exposed Hour + Minute drop down lists.
We saw that the DateChooser didn't always show the Hour + Min drop downs in our app and found out that the difference was that we had some fields defined as Date and some fields defined as DateTime.
The problem we are experiencing is as follows:
1) The DateChooser is not showing the Hour + Min drop downs properly. The drop downs themselves are too narrow and the Hour + Min text in them are being shown as ... text only. If I use FireBug or something like that and expand the width of the widget (from 11px to 15px or so) then the widget displays the text properly. I was wondering if the load_skin.js file had some new attributes or flags exposed, but was not able to see something stand out...
2) Because of the first issue, I'm trying to hide the DateChooser's TimeItem widget (for now at least since we have never needed this time item before) by calling the DateChooser.setShowTimeItem(Boolean.FALSE); method. We do not need allow the end user to choose Hour + Min currently.
The problem is, I do not have an instance of a DateChooser when I'm defining my ListGrid date time fields... I have a MiniDateRangeItem instance (as shown in the code snippet below).
So I'm wondering if there is a way to do something like this in the SmartGWT api?
We experienced an issue with the DateChooser widget recently when we upgraded to SmartGWT 4.1d. We for the first time saw that the DateChooser widget exposed Hour + Minute drop down lists.
We saw that the DateChooser didn't always show the Hour + Min drop downs in our app and found out that the difference was that we had some fields defined as Date and some fields defined as DateTime.
The problem we are experiencing is as follows:
1) The DateChooser is not showing the Hour + Min drop downs properly. The drop downs themselves are too narrow and the Hour + Min text in them are being shown as ... text only. If I use FireBug or something like that and expand the width of the widget (from 11px to 15px or so) then the widget displays the text properly. I was wondering if the load_skin.js file had some new attributes or flags exposed, but was not able to see something stand out...
2) Because of the first issue, I'm trying to hide the DateChooser's TimeItem widget (for now at least since we have never needed this time item before) by calling the DateChooser.setShowTimeItem(Boolean.FALSE); method. We do not need allow the end user to choose Hour + Min currently.
The problem is, I do not have an instance of a DateChooser when I'm defining my ListGrid date time fields... I have a MiniDateRangeItem instance (as shown in the code snippet below).
So I'm wondering if there is a way to do something like this in the SmartGWT api?
Code:
MiniDateRangeItem miniDateRangeItem = new MiniDateRangeItem(); // tell MiniDateRangeItem that the DateChooser it will show should not show TimeItem: miniDateRangeItem.setDateChooserProperties(???); ListGridField dateTimeField = new ListGridField("DateTime", 100); dateTimeField.setType(ListGridFieldType.DATETIME); dateTimeField.setFilterEditorType(miniDateRangeItem);
Comment