Sorry, I don't have time at the moment to put an example together. But 
basically what I am suggesting is to use a single-row TableView as your filter. 
Setting the "columnSource" property of this table view to your main table will 
keep the table structures in sync: when you resize a column in the main table, 
the corresponding column in the header will also be resized.

However, table views are not inherently editable, so you'll need to attach an 
editor to it in order for the user to modify the filter values. Take a look at 
this demo for an example:

http://pivot.apache.org/demos/table-row-editor.html
http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/roweditor/

That example uses a slide transition effect to bring up the editor, but that is 
optional. You can use a different transition or no transition at all, if you 
prefer.

Hope this helps.

G

On Aug 31, 2011, at 9:07 AM, prophe wrote:

>> Do you mean that you want the width of the filter field to match the width
> of the column?
> 
> Yes, that's what I want.
> 
>> One is to use another TableView as your filter row, and attach an editor
>> to it. You can easily keep the column widths in sync by setting the filter
>> TableView's column source to your main table. 
> 
> Can you post a simple of code, please. I'm not sure that I understend you.
> 
> Thank you, for your reply!
> 
> -----
> Thank you!
> --
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3298286.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to