We've updated from SmartGWT 6.0-p20170620 to 6.1-p20180407 as recommended in an other post. Unfortunately, the ListGridField behavior of the boolean fields have changed.
In the previous version we were able to edit the boolean fields without executing a double-click to activate the edit mode. The Boolean fields could be toggled directly. This is no longer possible.
All attempts to circumvent the behavior, unfortunately failed. It seems like the setCanToggle () method is not working anymore. Pleas can you help us?
ListGrid listGrid = new ListGrid();
listGrid.setWidth100();
listGrid.setHeight100();
listGrid.setDataSource("dic_languages");
listGrid.setAutoFetchData(true);
listGrid.setCanEdit(true);
//listGrid.setEditEvent(ListGridEditEvent.CLICK); //this improves the usability in our case, but it is not the old behaviour of the old version
//listGrid.setEditByCell(true); //this improves the usability in our case, but it is not the old behaviour of the old version
ListGridField locale = new ListGridField("LOCALE", "locale");
locale.setType(ListGridFieldType.TEXT);
ListGridField enabled = new ListGridField("ENABLED", "enabled");
enabled.setType(ListGridFieldType.BOOLEAN);
enabled.setCanToggle(true);
enabled.setCanEdit(true);
listGrid.setFields(locale, enabled);
VLayout layout = (VLayout) BaseWidget.getById("TEST_VLayout0");
layout.addMember(listGrid);
In the previous version we were able to edit the boolean fields without executing a double-click to activate the edit mode. The Boolean fields could be toggled directly. This is no longer possible.
All attempts to circumvent the behavior, unfortunately failed. It seems like the setCanToggle () method is not working anymore. Pleas can you help us?
ListGrid listGrid = new ListGrid();
listGrid.setWidth100();
listGrid.setHeight100();
listGrid.setDataSource("dic_languages");
listGrid.setAutoFetchData(true);
listGrid.setCanEdit(true);
//listGrid.setEditEvent(ListGridEditEvent.CLICK); //this improves the usability in our case, but it is not the old behaviour of the old version
//listGrid.setEditByCell(true); //this improves the usability in our case, but it is not the old behaviour of the old version
ListGridField locale = new ListGridField("LOCALE", "locale");
locale.setType(ListGridFieldType.TEXT);
ListGridField enabled = new ListGridField("ENABLED", "enabled");
enabled.setType(ListGridFieldType.BOOLEAN);
enabled.setCanToggle(true);
enabled.setCanEdit(true);
listGrid.setFields(locale, enabled);
VLayout layout = (VLayout) BaseWidget.getById("TEST_VLayout0");
layout.addMember(listGrid);
Comment