hi Daniel,

I dont want to show a column in the table aswellas in the ColumnVisibility
button. 
For hiding the column from the table I am using the method
setColumnVisible(0, false); which is wrking.

But I am unable to hide the column name from the ColumnVisibility button. I
followed your answer below but it throws errors as it is expecting equal
number of names and IDs. 

Please help me on this.

Help would be appreciated.

Thanks

Daniel Haferkorn wrote:
> 
> Hi,
> 
> if you want to never show the columns and also not have them visible in 
> the ColumnVisibilityButton, try to not set their column id's.
> Let's say you have 5 columns, id, foo, bar, bla and blubb and because of 
> their silly names you don't want to show the last two.
> This is how to achieve this:
> tableModel = new qx.ui.table.SimpleTableModel();
> tableModel.setColumnIds(["id", "foo", "bar"]);
> table = new qx.ui.table.Table(tableModel);
> 
> Of course, you can still access the cell values by their column index:
> var rowZeroColumnFiveValue = tableModel.getValue(4, 0);
> 
> Hope this helps. :)
> 
> Regards,
> Daniel Haferkorn
> 
> MootCycle wrote:
>>      I have a table with a large amount of data pushed to it from a
>> server.
>> It would be nice to be able to filter the data on the client side so we
>> do
>> not have to re-request all the data from the server.
>> 
>>      I've been looking through the TreeVirtual files looking for how that
>> object hides certain table rows from being rendered, but I must be
>> missing
>> the step that actually flips the row from visible to invisible (and I
>> don't
>> see a property on the row data itself.) I've gotten as far as tracing
>> into
>> the setData() function (SimpleTreeDataModel.js) and then into the render
>> function, but I don't see anything in that function checking to see if
>> the
>> row should be hidden or rendered. Maybe I'm looking at this the wrong
>> way,
>> but it would be great if someone could point me in the right direction in
>> TreeVirtual so I could try and implement the same thing in a standard
>> table.
>> 
>> Thanks
>> -Dan
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-hide-table-rows-in-the-table-class--tp11976962p21316699.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to