Hi,
It seems defining an expansion component in a ListGrid currently does not work. The following ComponentXML defines a ListGrid which is Loaded successfully via RPCManager.loadScreen() and the added to the canvas.
The property
indicates, that records should be expandable.
However, this setting just does not seem to be picked up.
If this property is set directly in the code later on, i.e.
it will show the arrows (to expand a record) on the left side of the loaded ListGrid. (Since the expansion component is undefined, it remains empty if the arrow is clicked)
Other properties defined here http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/grid/ListGrid.html
seem to be applied in both cases. (set either using java or xml).
1. SmartClient Version: v8.3p_2013-04-24/PowerEdition Deployment (built 2013-04-24)
2. FF 20.0.1 (dev and deployment mode), Chrome Version 26.0.1410.64 m, IE 10.0.9200.16540 (all on Windows 8)
4. Cannot include the output of the DebugConsole, since the Screen (ListGrid) is loaded (fully functional) into the DebugConsle window if I click on the respective request in the RPC tab! (Another Bug?!?)
Regards,
fatzopilot
It seems defining an expansion component in a ListGrid currently does not work. The following ComponentXML defines a ListGrid which is Loaded successfully via RPCManager.loadScreen() and the added to the canvas.
Code:
<DataSource> <loadID>SomeBean</loadID> </DataSource> <ListGrid dataSource="SomeBean" ID="ListGrid0" autoDraw="false"> <fields> <ListGridField name="id" title="Id"/> <ListGridField name="anotherBeanId" title="Another Bean Id"/> <ListGridField name="aProperty" title="A Property"/> <ListGridField name="anotherBean" title="AnotherBean"/> </fields> <showFilterEditor>true</showFilterEditor> <canExpandRecords>true</canExpandRecords> </ListGrid> <DataView ID="DataView0" width="100%" height="100%" overflow="hidden" autoDraw="true"> <members><Canvas ref="ListGrid0"/> </members> <modulesDir>modules/</modulesDir> </DataView>
Code:
<canExpandRecords>true</canExpandRecords>
However, this setting just does not seem to be picked up.
If this property is set directly in the code later on, i.e.
Code:
loadedListGrid.setCanExpandRecords(true);
Other properties defined here http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/grid/ListGrid.html
seem to be applied in both cases. (set either using java or xml).
1. SmartClient Version: v8.3p_2013-04-24/PowerEdition Deployment (built 2013-04-24)
2. FF 20.0.1 (dev and deployment mode), Chrome Version 26.0.1410.64 m, IE 10.0.9200.16540 (all on Windows 8)
4. Cannot include the output of the DebugConsole, since the Screen (ListGrid) is loaded (fully functional) into the DebugConsle window if I click on the respective request in the RPC tab! (Another Bug?!?)
Regards,
fatzopilot
Comment