The "select all" checkbox on the top left is not working for me.
I am using
SmartClient Version: SC_SNAPSHOT-2010-11-10/PowerEdition Deployment (built 2010-11-10) with GWT 2.0.4 on Firefox 3.6.12
Java code:
Datasource
I am using
SmartClient Version: SC_SNAPSHOT-2010-11-10/PowerEdition Deployment (built 2010-11-10) with GWT 2.0.4 on Firefox 3.6.12
Java code:
Code:
package test.client; import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.data.DataSource; import com.smartgwt.client.types.MultipleAppearance; import com.smartgwt.client.widgets.form.DynamicForm; import com.smartgwt.client.widgets.form.fields.SelectItem; import com.smartgwt.client.widgets.grid.ListGridField; public class SelectMultipleSample implements EntryPoint { public void onModuleLoad() { DynamicForm selectComboForm = new DynamicForm(); selectComboForm.setWidth(450); final SelectItem selectItem = new SelectItem(); selectItem.setMultipleAppearance(MultipleAppearance.PICKLIST); selectItem.setMultiple(true); selectItem.setTitle("Select"); selectItem.setOptionDataSource(DataSource.get("contents")); ListGridField cntnId = new ListGridField("cntn_id", "Content id"); ListGridField cntnBarCode = new ListGridField("cntn_barCode", "Content Barcode"); selectItem.setPickListFields(cntnId, cntnBarCode); selectComboForm.setItems(selectItem); selectComboForm.draw(); } }
Code:
<DataSource ID="contents" serverType="sql" tableName="content"> <fields> <field primaryKey="true" type="sequence" name="cntn_pk" hidden="true" export="false"></field> <field type="datetime" name="cntn_createdOn" canEdit="false" canFilter="true" title="" detail="true" showInGrid="true" export="true"></field> <field type="text" length="45" name="cntn_id" required="true" exportable="true" export="true"></field> <field title="bar" type="text" length="45" name="cntn_barCode" showInGrid="true" canEdit="false" export="true"></field> <field type="integer" name="cntn_fk_location" hidden="false"></field> <field title="quantity" type="float" name="cntn_quantity" export="true"></field> <field title="unit" type="text" length="45" name="cntn_unit" export="true" ></field> </fields> </DataSource>
Comment