You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Sandro Martini <sa...@gmail.com> on 2011/08/22 15:44:30 UTC
Re: Filter in TableView
Hi,
you should subscribe to our mailing lists, or you post will not be accepted
di nabble, and no other user/developer can give you an answer.
You can find them here:
http://pivot.apache.org/lists.html
The users mailing list is enough for your question.
Bye
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3275062.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Sandro Martini <sa...@gmail.com>.
>And all my code is a bxml page, which code you can find above on this
page...
Ok, very good.
>I wait you fix this problem!
Next week I'll try too look at it.
>And I start to write a custom component - TableViewFilter, can you help me
with this?
I'm sorry but in Pivot usually I work on different parts of it (very little
on components) so I can't help you so much on this. But maybe others can ...
>I'll start a new topic here...
Yes, it's better.
I'll keep you updated.
Bye,
Sandro
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3303828.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
Ok, i user pivot plugin for eclipse... And all my code is a bxml page, which
code you can find above on this page... I wait you fix this problem! Thank
you... And I start to write a custom component - TableViewFilter, can you
help me with this? I'll start a new topic here...
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3303748.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Sandro Martini <sa...@gmail.com>.
Hi,
>I don't understand, I must post code or you have to look at source code?
Both, but I was referring to Pivot source code :-) .
So if you can post a minimal (working) sample (inside a zip), it will speed
up a lot our tests, to see if there is something to fix in Pivot.
Thanks.
Bye
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3303716.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
I don't understand, I must post code or you have to look at source code?
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3303552.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Sandro Martini <sa...@gmail.com>.
As Greg say, probably we have to look at (popup) window offset / positioning
...
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3301595.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
I don't set any padding/spacing in the skin... Is it possible to remove this
spacing?
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3301588.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
I don't think so. The editor is shown in a popup window. What I don't know is why the window is offset vertically like that.
On Sep 1, 2011, at 10:45 AM, Sandro Martini wrote:
> Some default padding/spacing in the skin ?
>
>
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3301512.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Sandro Martini <sa...@gmail.com>.
Some default padding/spacing in the skin ?
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3301512.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
Thank you for clarifying. That is strange. I don't know why that space is there. Maybe someone else has an idea?
On Sep 1, 2011, at 10:28 AM, prophe wrote:
> Look at the picture - The filter table has a space between editor and header
> of table! This editor doesn't looks like the editor in main table...
>
> http://apache-pivot-users.399431.n3.nabble.com/file/n3301444/3.png
>
> Sorry for my poor english! And know, Have I explained more clearly?
>
> -----
> Thank you!
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3301444.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
Thank you for clarifying. That is strange. I don't know why that space is there. Maybe someone else has an idea?
On Sep 1, 2011, at 10:28 AM, prophe wrote:
> Look at the picture - The filter table has a space between editor and header
> of table! This editor doesn't looks like the editor in main table...
>
> http://apache-pivot-users.399431.n3.nabble.com/file/n3301444/3.png
>
> Sorry for my poor english! And know, Have I explained more clearly?
>
> -----
> Thank you!
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3301444.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
Look at the picture - The filter table has a space between editor and header
of table! This editor doesn't looks like the editor in main table...
http://apache-pivot-users.399431.n3.nabble.com/file/n3301444/3.png
Sorry for my poor english! And know, Have I explained more clearly?
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3301444.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
> Oops, It was my fault with not working editor... It works fine.. my code is:
Glad to hear that you got it working.
> But how can I exlude a deviation of editor in my filter table?
I'm not sure what you mean by this. Could you be more specific?
G
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
Oops, It was my fault with not working editor... It works fine.. my code is:
<Window title="Table Views" maximized="true"
xmlns:bxml="http://pivot.apache.org/bxml"
xmlns:collections="org.apache.pivot.collections"
xmlns="org.apache.pivot.wtk"
xmlns:content="org.apache.pivot.wtk.content">
<Border>
<ScrollPane>
<TableView bxml:id="tableView">
<columns>
<TableView.Column name="nation" width="180"
headerData="Nation"/>
<TableView.Column name="gold" width="60"
headerData="Gold"/>
<TableView.Column name="silver" width="60"
headerData="Silver"/>
<TableView.Column name="bronze" width="60"
headerData="Bronze"/>
<TableView.Column name="total" width="60"
headerData="Total"/>
</columns>
<collections:HashMap nation="China" gold="51" silver="21"
bronze="28" total="100"/>
<collections:HashMap nation="United States" gold="36"
silver="38" bronze="36" total="110"/>
<collections:HashMap nation="Russia" gold="23" silver="21"
bronze="28" total="72"/>
<collections:HashMap nation="Great Britain" gold="19"
silver="13" bronze="15" total="47"/>
<collections:HashMap nation="Germany" gold="16" silver="10"
bronze="15" total="41"/>
<collections:HashMap nation="Australia" gold="14"
silver="15" bronze="17" total="46"/>
<collections:HashMap nation="South Korea" gold="13"
silver="10" bronze="8" total="31"/>
<collections:HashMap nation="Japan" gold="9" silver="6"
bronze="11" total="26"/>
<collections:HashMap nation="Italy" gold="8" silver="10"
bronze="10" total="28"/>
<collections:HashMap nation="France" gold="7" silver="16"
bronze="17" total="40"/>
</TableView>
<columnHeader>
<TableViewHeader tableView="$tableView"/>
<BoxPane orientation="vertical" styles="{fill:true}">
<TableViewHeader tableView="$tableView"/>
<TableView bxml:id="tableViewFilter"
columnSource="$tableView">
<columns>
<TableView.Column name="nation" width="180"/>
<TableView.Column name="gold" width="60" />
<TableView.Column name="silver" width="60"/>
<TableView.Column name="bronze" width="60"/>
<TableView.Column name="total" width="60"/>
</columns>
<rowEditor>
<content:TableViewRowEditor editEffect="horizontal_slide">
<cellEditors>
<nation>
<TextInput textKey="nation"/>
</nation>
</cellEditors>
</content:TableViewRowEditor>
</rowEditor>
<collections:HashMap nation="" gold="" silver="" bronze=""
total=""/>
</TableView>
</BoxPane>
</columnHeader>
</ScrollPane>
</Border>
</Window>
But how can I exlude a deviation of editor in my filter table?
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3301106.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Sandro Martini <sa...@gmail.com>.
> Sandro Martini, Have you working example? I've tried to do something like
that, but I can't!
I'm sorry but it was just an idea, as seen in other frameworks ...
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3301076.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
Sandro Martini, Have you working example? I've tried to do something like
that, but I can't!
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3300671.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
TableViewHeader is not a Container, so it can't contain a TextInput. That's why I suggested the editor approach.
On Sep 1, 2011, at 5:01 AM, Sandro Martini wrote:
> Hi all,
> and inside the table header (have it as the table header):
> put a text input (or a list view), one for every column, and use it as label
> and as filter ?
> I have seen something like this in many other frameworks ...
>
> Bye
>
>
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3300647.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Sandro Martini <sa...@gmail.com>.
Hi all,
and inside the table header (have it as the table header):
put a text input (or a list view), one for every column, and use it as label
and as filter ?
I have seen something like this in many other frameworks ...
Bye
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3300647.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
Can you share some sample code that demonstrates the problem?
On Sep 1, 2011, at 4:21 AM, prophe wrote:
> And I have another problem... When I add <TableViewHeader
> tableView="$tableView"/> Editor in filter tableView doesn't work (image 1).
>
> http://apache-pivot-users.399431.n3.nabble.com/file/n3300584/1.png
>
> and when I remove this <TableViewHeader tableView="$tableView"/> editor
> works fine (image 2)
>
> http://apache-pivot-users.399431.n3.nabble.com/file/n3300584/2.png
> But in second case column width of my tables doesn't in sync. And in both,
> as you can see in pictures, editor have a little deviation from row.
>
> Any solutions? Or maybe should I write my custom widget and don't use
> tableView (but I don't know how to do it)?
>
>
> -----
> Thank you!
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3300584.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
And I have another problem... When I add <TableViewHeader
tableView="$tableView"/> Editor in filter tableView doesn't work (image 1).
http://apache-pivot-users.399431.n3.nabble.com/file/n3300584/1.png
and when I remove this <TableViewHeader tableView="$tableView"/> editor
works fine (image 2)
http://apache-pivot-users.399431.n3.nabble.com/file/n3300584/2.png
But in second case column width of my tables doesn't in sync. And in both,
as you can see in pictures, editor have a little deviation from row.
Any solutions? Or maybe should I write my custom widget and don't use
tableView (but I don't know how to do it)?
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3300584.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
Yes, you can set the "backgroundColor" style of your filter table to a different color, and you can also use the "alternateRowBackgroundColor" style to render odd-numbered rows in a different color.
On Aug 31, 2011, at 10:35 AM, prophe wrote:
> Ok, Thank you. And now my columns width in sync. Can I color first row (I
> have only one row) in my filter table in grey color? Because now i have two
> white row in succession! Or color odd rows of main view table in grey, and
> even in white.
>
> -----
> Thank you!
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3298548.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
Ok, Thank you. And now my columns width in sync. Can I color first row (I
have only one row) in my filter table in grey color? Because now i have two
white row in succession! Or color odd rows of main view table in grey, and
even in white.
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3298548.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
I imagine you'd want to do something like this:
<ScrollPane>
<view>
<TableView bxml:id="tableView">
...
</TableView>
</view>
<columnHeader>
<BoxPane orientation="vertical" styles="{fill:true}">
<TableViewHeader tableView="$tableView"/>
<TableView bxml:id="tableViewFilter" columnSource="$tableView"/>
</BoxPane>
</columnHeader>
</ScrollPane>
On Aug 31, 2011, at 10:08 AM, prophe wrote:
> I've done something like that... In my bxml I've added:
>
> <columnHeader>
> <TableViewHeader tableView="$tableView"/>
> <BoxPane orientation="vertical" styles="{fill:true}">
> <TableViewHeader tableView="$tableView"/>
> <TableView bxml:id="tableViewFilter">
> <columns>
> <TableView.Column name="nation" width="180"/>
> <TableView.Column name="gold" width="60" />
> <TableView.Column name="silver" width="60"/>
> <TableView.Column name="bronze" width="60"/>
> <TableView.Column name="total" width="60"/>
> </columns>
> <collections:HashMap nation="" gold="" silver="" bronze=""
> total=""/>
> </TableView>
> </BoxPane>
> </columnHeader>
>
> My main tableView have id="tableView" and in my class:
>
>> 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.
>
> @BXML(id="tableView") private TableView tableView;
> @BXML(id="tableViewFilter") private TableView filter;
> .....
> @Override
> public void initialize(Map<String, Object> namespace, URL location,
> Resources resources) {
> ......
> filter.setColumnSource(tableView.getColumnSource());
> }
> Is it right? Or I don't understand you? Because width of columns isn't in
> sync.
>
> -----
> Thank you!
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3298453.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
I've done something like that... In my bxml I've added:
<columnHeader>
<TableViewHeader tableView="$tableView"/>
<BoxPane orientation="vertical" styles="{fill:true}">
<TableViewHeader tableView="$tableView"/>
<TableView bxml:id="tableViewFilter">
<columns>
<TableView.Column name="nation" width="180"/>
<TableView.Column name="gold" width="60" />
<TableView.Column name="silver" width="60"/>
<TableView.Column name="bronze" width="60"/>
<TableView.Column name="total" width="60"/>
</columns>
<collections:HashMap nation="" gold="" silver="" bronze=""
total=""/>
</TableView>
</BoxPane>
</columnHeader>
My main tableView have id="tableView" and in my class:
>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.
@BXML(id="tableView") private TableView tableView;
@BXML(id="tableViewFilter") private TableView filter;
.....
@Override
public void initialize(Map<String, Object> namespace, URL location,
Resources resources) {
......
filter.setColumnSource(tableView.getColumnSource());
}
Is it right? Or I don't understand you? Because width of columns isn't in
sync.
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3298453.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
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.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
> 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.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
> Ok this is almost that I want. But in your solution filters not resizable
Do you mean that you want the width of the filter field to match the width of the column?
> And I want that appearance be similar row. Is it possible?
Yes. There are a couple of ways you could do this. 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.
Another approach would be to use a TablePane and listen for column width changes on your main table, updating your table pane column widths accordingly. But I think that in the long run this could be more work than the other option.
G
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
Ok this is almost that I want. But in your solution filters not resizable,
when I resize column header, filters keep thier size. And I want that
appearance be similar row. Is it possible?
But now I have:
http://apache-pivot-users.399431.n3.nabble.com/file/n3298232/ScreenClip.png
my code is:
<Window title="Table Views" maximized="true"
xmlns:bxml="http://pivot.apache.org/bxml"
xmlns:collections="org.apache.pivot.collections"
xmlns="org.apache.pivot.wtk">
<Border>
<ScrollPane>
<TableView bxml:id="tableView">
<columns>
<TableView.Column name="nation" width="180"
headerData="Nation"/>
<TableView.Column name="gold" width="60"
headerData="Gold"/>
<TableView.Column name="silver" width="60"
headerData="Silver"/>
<TableView.Column name="bronze" width="60"
headerData="Bronze"/>
<TableView.Column name="total" width="60"
headerData="Total"/>
</columns>
<collections:HashMap nation="China" gold="51" silver="21"
bronze="28" total="100"/>
<collections:HashMap nation="United States" gold="36"
silver="38" bronze="36" total="110"/>
<collections:HashMap nation="Russia" gold="23" silver="21"
bronze="28" total="72"/>
<collections:HashMap nation="Great Britain" gold="19"
silver="13" bronze="15" total="47"/>
<collections:HashMap nation="Germany" gold="16" silver="10"
bronze="15" total="41"/>
<collections:HashMap nation="Australia" gold="14"
silver="15" bronze="17" total="46"/>
<collections:HashMap nation="South Korea" gold="13"
silver="10" bronze="8" total="31"/>
<collections:HashMap nation="Japan" gold="9" silver="6"
bronze="11" total="26"/>
<collections:HashMap nation="Italy" gold="8" silver="10"
bronze="10" total="28"/>
<collections:HashMap nation="France" gold="7" silver="16"
bronze="17" total="40"/>
</TableView>
<columnHeader>
<TableViewHeader tableView="$tableView"/>
<BoxPane orientation="vertical" styles="{fill:true}">
<TableViewHeader tableView="$tableView"/>
<BoxPane>
<TextInput prompt="Filter Field 1"/>
<TextInput prompt="Filter Field 2"/>
<TextInput prompt="Filter Field 3"/>
<TextInput prompt="Filter Field 4"/>
<TextInput prompt="Filter Field 5"/>
</BoxPane>
</BoxPane>
</columnHeader>
</ScrollPane>
</Border>
</Window>
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3298232.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by Greg Brown <gk...@verizon.net>.
I believe you were asking about how to place a row of filter fields in the table view, correct? If so, you can simply add these to the column header of your table view's scroll pane. You can use a BoxPane or TablePane for the header and add your TableViewHeader and filter component to it:
<ScrollPane>
<columnHeader>
<BoxPane orientation="vertical" styles="{fill:true}">
<TableViewHeader tableView="$myTableView"/>
<BoxPane>
<TextInput prompt="Filter Field 1"/>
<TextInput prompt="Filter Field 2"/>
<TextInput prompt="Filter Field 3"/>
</BoxPane>
</BoxPane>
...
On Aug 31, 2011, at 6:39 AM, prophe wrote:
> Anybody know how to do filter like I've described in first message?
>
> -----
> Thank you!
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3297994.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
RE: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
Anybody know how to do filter like I've described in first message?
-----
Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3297994.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
RE: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
But there is no filter in Table in this example... I don't know how to create
a filtered table.
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3283245.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
RE: Filter in TableView
Posted by Camilo Casadiego <Ca...@adv.co>.
sorry I haven't had time to clean up my code in order to send you...but I based all my work on this example
http://pivot.apache.org/tutorials/table-views.json.html
Kind Regards,
Camilo Casadiego Espitia
-----Mensaje original-----
De: prophe [mailto:au@cargosoft.ru]
Enviado el: Tuesday, August 23, 2011 8:25 AM
Para: user@pivot.apache.org
Asunto: RE: Filter in TableView
Ok, thank you very much! My mail - au@cargosoft.ru
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3277982.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
RE: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
Ok, thank you very much! My mail - au@cargosoft.ru
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3277982.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
RE: Filter in TableView
Posted by Camilo Casadiego <Ca...@adv.co>.
sure..rigth now i'm a little busy....maybe in the aftenroon i can check some code and send it to you
Kind Regards,
Camilo Casadiego Espitia
-----Mensaje original-----
De: prophe [mailto:au@cargosoft.ru]
Enviado el: Tuesday, August 23, 2011 5:10 AM
Para: user@pivot.apache.org
Asunto: RE: Filter in TableView
And what is an appearance of your filter in table? like I've described? If
so, can you give me some code, please? I can't understand yet how to do
that... Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3277556.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
RE: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
And what is an appearance of your filter in table? like I've described? If
so, can you give me some code, please? I can't understand yet how to do
that... Thank you!
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3277556.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
RE: Filter in TableView
Posted by Camilo Casadiego <Ca...@adv.co>.
hi there...I have made some filtering in different componets...anb basically what i have done is to add or the textchange listeners to the input texts, or add some buttons to handle the event of filtering, the in the event just recalculated the array or map used to paint the component, and set it to the parent component (ie, the list object...table..whatever) and pivot renders it automatically
Kind Regards,
Camilo Casadiego Espitia
-----Mensaje original-----
De: prophe [mailto:au@cargosoft.ru]
Enviado el: Tuesday, August 23, 2011 4:45 AM
Para: user@pivot.apache.org
Asunto: Re: Filter in TableView
Done. Any ideas how to do that?
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3277515.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Filter in TableView
Posted by prophe <au...@cargosoft.ru>.
Done. Any ideas how to do that?
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Filter-in-TableView-tp3215369p3277515.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.