On Mon, Mar 12, 2012 at 13:11, Phyo Arkar <[email protected]> wrote:

> Hello Qooxdoo devs!
>
> How can I turn Header cells into Filterable Text box for Filtering (or)
> Add a blank row that does nothing (at the top row) just to render it wiith
> text boxes (or editable combo boxes) with filterable data ?
>
> And i need that for Remote Table Model.
>

Hi Phyo,

Firstly, the headers have nothing to do with the model at all. The data
that is displayed in the headers does not come from the model. Whether you
use the Simple or Remote model, or some other of your own design will have
no effect.

That's not to say, however, that you couldn't use data in the model to
update the headers. First, you'll need to have headers that can be updated.

Headers are rendered by the header renderer, by default
qx.ui.table.headerrenderer.Default (which renders each cell using
qx.ui.table.headerrendrer.HeaderCell). You can replace the default renderer
with a class of your own by setting the static variable
qx.ui.table.columnmodel.DEFAULT_HEADER_RENDERER to reference a different
class that you create. Your own class could have properties or setter
functions that alter the header, and you could call the functions to modify
it from your function that receives the model data. You can also leave the
Default header renderer as is, and only modify the individual header
*cell*renderers. You can retrieve the header cell renderer for a
particular
column with table.getTableColumnModel().getHeaderCellRenderer(col)

Hope that helps.

Derrell
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to