Thanks,
I can confirm that it works now.
Regards,
fatzopilot
Announcement
Collapse
No announcement yet.
X
-
Thanks for pointing this out - yes it should be true not "true", but also the component wouldn't ordinarily have been picky about that and accepted "true".
Both problems are fixed for tomorrow's 3.1 and 4.0 builds.
Leave a comment:
-
If translated to JS using the code tab in visual builder, the Grid gets converted to
Other properties that are added (e.g. canEdit) are true, not "true". Could this be a reason?Code:isc.ListGrid.create({ ID:"SomeBeanGrid", autoDraw:false, dataSource:"ref:SomeBean", fields:[ { name:"id", title:"Id" }, { name:"anotherBeanId", title:"Another Bean Id" }, { name:"aProperty", title:"A Property" }, { name:"anotherBean", title:"AnotherBean" } ], showFilterEditor:true, canExpandRecords:"true" })
Leave a comment:
-
Bug with ListGrid Expansion component in ComponentXML
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 propertyCode:<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>
indicates, that records should be expandable.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.
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)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,
fatzopilotTags: None
Leave a comment: