kartik-v / yii2-dynagrid

Turbo charge the Yii 2 GridView with personalized columns, page size, and themes.
http://demos.krajee.com/dynagrid
Other
74 stars 66 forks source link

Add Model as a new storage option #38

Closed YasserHassan closed 9 years ago

YasserHassan commented 9 years ago

I suggest adding Model as a storage option to the current ones. The developer would pass models inhered from DynaGridConfig and DynaGridSettings. My understanding is that there's currently no direct way to interrupt the above models' data moved from/to the grid and the database to perform any extra processing. For example, to filter the retrieved user column set against a permissions list set by the admin as those permission could be updated after the user settings were saved, so the user does not see columns/data he's no longer supposed to see. There are also other useful uses for this.

kartik-v commented 9 years ago

It may need some major changes to the codeset the way its implemented. So I will stall this request as of now and take it up when I get time.