Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

FilterBuilder values are not visible in the SelectItem if the value is long

$
0
0
I will use the code from the SmartGWT Showcase. The example is "Server Advanced Filter".
Here's the code (package com.smartgwt.sample.showcase.client.dataintegratio n.java.sql.ServerAdvancedFilteringSQLSample ):
Code:

DataSource dataSource = DataSource.get("worldDS"); 
 
      final FilterBuilder advancedFilter = new FilterBuilder(); 
      advancedFilter.setDataSource(dataSource); 
...
      VStack layout = new VStack(10); 
        layout.addMember(advancedFilter);
...
      layout.draw();
}

All you have to do change the DS file:

<DataSource
ID="worldDS"
serverType="sql"
tableName="worldDS"
testFileName="/ds/test_data/world.data.xml"
>
<fields>
<field name="pk" type="sequence" hidden="true" primaryKey="true" />
<field name="countryCode" type="text" title="Code" required="true" />
<field name="countryName" type="text" title="Country" required="true" />
<field name="capital" type="text" title="Capital" />
<field name="government" type="text" title="Government" length="500" />
<field name="continent" type="text" title="Continent" >
<valueMap>
<value>Europe</value>
<value>Asia</value>
<value>North America</value>
<value>Australia/Oceania</value>
<value>South America</value>
<value>Africa</value>
</valueMap>
</field>
<field name="independence" type="date" title="Nationhood wwwwwwwwwwkkkkkkkkkkpppppppppprrrrrrrrr123" />
<field name="area" type="float" title="Area (km&amp;sup2;)" />
<field name="population" type="integer" title="Population" />
<field name="gdp" type="float" title="GDP ($M) wwwwwwwwwwkkkkkkkkkkpppppppppprrrrrrrrr123" />
<field name="member_g8" type="boolean" title="G8" />
</fields>
</DataSource>

If you open the Showcase now and select long value in the select item - the value is cut off.
There is no tooltip for the select item and use have to click on the item to see the value.

I think the tooltip should be added to the FilterBuilder selects, as well it can be a great idea to add setShowClippedValueOnHover for these elements.

Attached Images
File Type: gif bug01.gif (25.6 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles