I would like to give the datagrid an explicit list of items, and the
datastore seems to be getting in my way.
So take the following example, I have a class 'person and
want to display a list of persons in datagrid.
I would like to show two (or more) lists of persons, lets say:
1 - Friends
2 - Enemies
Now as far as I can tell I can configure the datagrid
with
:data-class 'person
However this will show all persons in a datagrid.
Does anybody have an idea or pointers how to approach this?
I can think of one way to do this, but that seems cumbersome:
- For each instance of the datagrid make a specific datastore
- Carefully manage each datastore to have the right instances.
So is there a better/easier way?
Oh note, I am not (at the moment :-)) interested
in persistence.
Kind regards
Wim Oudshoorn
Take a look at the on-query slot; just specialize a datagrid
to use your own function there (which in turn can derive
the objects to return from the data-class slot, or have
its own logic to decide between Friends and Enemies).
Leslie
>
> Kind regards
> Wim Oudshoorn
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "weblocks"
> group.
> To post to this group, send email to webl...@googlegroups.com.
> To unsubscribe from this group, send email to weblocks+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/weblocks?hl=en.
>
>
>
--
>
> Take a look at the on-query slot; just specialize a datagrid
> to use your own function there (which in turn can derive
> the objects to return from the data-class slot, or have
> its own logic to decide between Friends and Enemies).
>
> Leslie
Thank you for the hint. It took a few tries but I got it working.
Kind regards,
Wim Oudshoorn.