Hi,
Is it possible to extend the grid class so that each column would have an
input field under the column header (to act as a filter input)?
I would like to be able to define instances like this:
<filtertable datapath="mydata:/root">
<filtercolumn title="id" datapath="@id" />
<filtercolumn title="name" datapath="@name" />
<filtercolumn title="date" datapath="@date" />
</filtertable>
I tried a couple of approaches, but without success. First I tried defining
the filtercolumn class as a subclass to the gridtext class and then putting
an edittext component in there, but that made it replicate the text field
for each row and give me a bunch of warning messages.
<class name="filtercolumn" extends="gridtext">
<attribute name="height" value="50" />
<edittext width="60" />
</class>
Then I tried not extending the gridtext class but just putting the gridtext
and the edittext inside the the filtertable class, but then the grid super
class didn't recognize them as gridtexts and thus wouldn't replicate it for
each attribute in the dataset.
<class name="filtercolumn">
<attribute name="title" type="string" />
<attribute name="height" value="50" />
<gridtext datapath="${this.parent.datapath}" name="${this.parent.title}"
/>
</class>
I would like to be able to use the handy grid component but just extend it
to add this little feature in it (the input field for each column). Any
suggestions?
Regards,
Mikko
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user