Hi,
I am on smartGWT 2.3 Power. I have a list grid with multiple onetomany relationship. Which I made all filter heading.
mainGrid.setTitle(CONSTANTS.productLine());
mainGrid.setAutoFitData(Autofit.HORIZONTAL);
mainGrid.setShowFilterEditor(true);
mainGrid.setFilterOnKeypress(true);
mainGrid.setFetchDelay(500);
And the drop down component look like this:
{
cbProductLine = new SelectItem("productname", "Product Line");
cbProductLine.setValueField("product_id");
cbProductLine.setDisplayField("productname");
ListGridField productNameField = new ListGridField(
"productname", "Product Line", 300);
cbProductLine.setPickListFields(productNameField);
DataSource ds = DataSource.get("esd_product_line");
cbProductLine.setOptionDataSource(ds);
}
{
cbVersion = new SelectItem("version", "Version");
cbVersion.setValueField("version_id");
cbVersion.setDisplayField("version");
ListGridField versionNameField = new ListGridField("version",
"Version", 100);
cbVersion.setPickListFields(versionNameField);
DataSource ds = DataSource.get("esd_version_lk");
cbVersion.setOptionDataSource(ds);
}
Anyway, the header filter seem to be working for one selection at a time. When I try the combination. I get an empty list.
Attach is may DS.
I am on smartGWT 2.3 Power. I have a list grid with multiple onetomany relationship. Which I made all filter heading.
mainGrid.setTitle(CONSTANTS.productLine());
mainGrid.setAutoFitData(Autofit.HORIZONTAL);
mainGrid.setShowFilterEditor(true);
mainGrid.setFilterOnKeypress(true);
mainGrid.setFetchDelay(500);
And the drop down component look like this:
{
cbProductLine = new SelectItem("productname", "Product Line");
cbProductLine.setValueField("product_id");
cbProductLine.setDisplayField("productname");
ListGridField productNameField = new ListGridField(
"productname", "Product Line", 300);
cbProductLine.setPickListFields(productNameField);
DataSource ds = DataSource.get("esd_product_line");
cbProductLine.setOptionDataSource(ds);
}
{
cbVersion = new SelectItem("version", "Version");
cbVersion.setValueField("version_id");
cbVersion.setDisplayField("version");
ListGridField versionNameField = new ListGridField("version",
"Version", 100);
cbVersion.setPickListFields(versionNameField);
DataSource ds = DataSource.get("esd_version_lk");
cbVersion.setOptionDataSource(ds);
}
Anyway, the header filter seem to be working for one selection at a time. When I try the combination. I get an empty list.
Attach is may DS.
Comment