SmartClient Version: v9.1p_2014-03-20/PowerEdition Deployment (built 2014-03-20)
GWT 2.5.1
IE-11
I have a SelectItem that is backed by a DataSource and provides and initial set of data to populate the drop down select list. One of the default items is meant to be editable by the user. After the initial set of data is loaded, if the user selects the custom item to be edited, an edit window will popup to gather the custom data.
I'm having trouble getting the SelectItem to display the updated values for the selected ListGridRecord. Here is what I am doing in the ClickHandler for the custom window to change the value of the selected item in the SelectItem:
The display does not change to reflect the change in the ListGridRecord? How can I get the SelectItem to update the display with the new Caption on the selected ListGridRecord?
When I click to open the SelectItem to see all values, I see the changed ListGridRecord with the new caption. But only when I click to open the SelectItem.
I need the display to change after I modify the ListGridRecord in the code above, because the SelectItem has already been selected to the custom value for the user to change. So I need the SelectItem to update the display. The selectItem.redraw() and the containing form's timeFrameForm.markForRedraw() has no affect after the ListGridRecord has been modified.
GWT 2.5.1
IE-11
I have a SelectItem that is backed by a DataSource and provides and initial set of data to populate the drop down select list. One of the default items is meant to be editable by the user. After the initial set of data is loaded, if the user selects the custom item to be edited, an edit window will popup to gather the custom data.
I'm having trouble getting the SelectItem to display the updated values for the selected ListGridRecord. Here is what I am doing in the ClickHandler for the custom window to change the value of the selected item in the SelectItem:
Code:
String caption = "Custom Dates (" + customStartDate + " - " + customEndDate + ")"; ListGridRecord record = selectItem.getSelectedRecord(); record.setAttribute("Caption", caption); record.setAttribute("MinDate", customStartDate); record.setAttribute("MaxDate", customEndDate); selectItem.redraw(); timeFrameForm.markForRedraw();
When I click to open the SelectItem to see all values, I see the changed ListGridRecord with the new caption. But only when I click to open the SelectItem.
I need the display to change after I modify the ListGridRecord in the code above, because the SelectItem has already been selected to the custom value for the user to change. So I need the SelectItem to update the display. The selectItem.redraw() and the containing form's timeFrameForm.markForRedraw() has no affect after the ListGridRecord has been modified.
Comment