Hi,

I'm proposing a change to DataGrid default configuration. Right now DataGrid is 
designed to work with ArrayList; its does not work with Array. I propose that 
the default configuration for DataGrid is to use Array as its dataProvider and 
provide no dynamic abilities.

We would include in the defaults.css a style definition,  DynamicDataGrid, 
which would set up DataGrid to use the more dynamic ICollectionView set of 
beads. When items were added or removed from the dataProvider, the grid would 
automatically reflect the change.

Doing this would provide a better PAYG experience. Or do you think DataGrid is 
too advanced to bother with Array at all?

<js:DataGrid> would require its dataProvider be an Array.
<js:DataGrid className="DynamicDataGrid"> would require its dataProvider be 
ArrayList (or any thing that implements ICollectionView).

What do you think? Should DataGrid's default configuration work with Array and 
then use PAYG to upgrade it to more dynamic components if that's what the 
developer wants?

One more thing: the List's default configuration uses Array and you have to add 
dynamic beads if you want it to respond to changes. I would also add a 
"DynamicList" style to make it easier to do that. This way there is consistency 
between List and DataGrid.

<js:List> would require its dataProvider to be an Array.
<js:List className="DynamicList"> would require its dataProvider to be 
ArrayList (or any thing that implements ICollectionView).

Thanks,
Peter


Reply via email to