views:

23

answers:

1

how to dynamically redefine columns in flexigrid?

i have tried the followings:

model = [{ .../*some new columns model*/ } ];

target.flexOptions({colModel: model});
target.flexReload();

without any luck :/

A: 

try this

  model = [{ .../*some new columns model*/ } ];
  $('#flex').flexOptions(model).flexReload();
mcgrailm
nope , this doesn't work, i have worked around it by predefining all the columns first and hide it :)
Yman