trNgGrid icon indicating copy to clipboard operation
trNgGrid copied to clipboard

How to dynamically add and remove columns

Open tedjt opened this issue 12 years ago • 10 comments

I was wondering the best approach to be able to dynamically add or remove columns. I have data objects with many more fields than I want to display and I want to let the user select the columns they want.

Right now all the column properties are defined on the TH elements in the table head. It would be nice to be able to define them on a watched object in the parent controller scope. I'm not an angular expert and would appreciate any pointers.

tedjt avatar May 22 '14 06:05 tedjt

I get where you're coming from. It's an interesting and useful feature. Let me see what I can do about it.

MoonStorm avatar May 28 '14 13:05 MoonStorm

a crud would be nice

DrMabuse23 avatar Jun 18 '14 21:06 DrMabuse23

Started working on this one as well. It fits well with my other work items.

MoonStorm avatar Jun 27 '14 16:06 MoonStorm

Part of 3.0 Beta which just got deployed on the demo site. Please post some feedback.

MoonStorm avatar Jul 08 '14 19:07 MoonStorm

Thx feedback coming soon

DrMabuse23 avatar Jul 09 '14 07:07 DrMabuse23

is there an example on how to do this

malplayer avatar Sep 18 '14 17:09 malplayer

Column Definitions and Grid Options section on the demo site.

MoonStorm avatar Sep 19 '14 07:09 MoonStorm

I swear maybe In am slow but I didn't see it on the demo site

mplayer avatar Sep 19 '14 11:09 mplayer

i figure it out thanks

malplayer avatar Sep 19 '14 22:09 malplayer

Can you share that with us malplayer. thanks

dasilvas3 avatar Jan 20 '15 16:01 dasilvas3