Hi,
In my sample application, I have a form which contains several formitems including ComboBoxItem. I have added FormItemIcon with each formitem but initially there is setShowIcons(false) for all. I only want to show the icon when user focus on the item. Thats why i have handled onFocus (in which I have added code event.getItem().setShowIcons(true) and event.getItem().redraw())
and same thing but setShowIcons(false) in onBlur event.
Now my problem is, Initially my combo box is typable. User can type and matched result will be populated in picker list. But when I focus on combo box, onFocus event gets fired and I am able to see FormItemIcon but my combo box is not typable now. Please note that instead of redraw I tried setWidth() also and if I remove redraw or setWidth my combo box works fine but no icon gets displayed.
Thanks in advance.
In my sample application, I have a form which contains several formitems including ComboBoxItem. I have added FormItemIcon with each formitem but initially there is setShowIcons(false) for all. I only want to show the icon when user focus on the item. Thats why i have handled onFocus (in which I have added code event.getItem().setShowIcons(true) and event.getItem().redraw())
and same thing but setShowIcons(false) in onBlur event.
Now my problem is, Initially my combo box is typable. User can type and matched result will be populated in picker list. But when I focus on combo box, onFocus event gets fired and I am able to see FormItemIcon but my combo box is not typable now. Please note that instead of redraw I tried setWidth() also and if I remove redraw or setWidth my combo box works fine but no icon gets displayed.
Thanks in advance.
Comment