gwt - GXT: Filter Grid add select all columns checkbox -
i have filter grid component similar icon below. want add together select all functionality in columns section of header. i've done research can't find kind of solution. not direction. want able attach handler checkbox check/uncheck of below options.
the module in question
i'm using sencha gxt 3.1.0 , and gwt 2.6.1
the icon
here's how , override createcontextmenu of gridview
columnmodel<hashmap> cm = new columnmodel<hashmap>(l); gridview<hashmap> gridview = new gridview<hashmap>() { @override protected void initheader() { super.initheader(); } protected menu createcontextmenu(final int colindex) { menu createcontextmenu = super.createcontextmenu(colindex); final checkmenuitem check = new checkmenuitem(); check.sethideonclick(false); check.sethtml("toggle selection"); check.setchecked(true); check.addcheckchangehandler(new checkchangehandler<checkmenuitem>() { @override public void oncheckchange(checkchangeevent<checkmenuitem> event) { window.alert("toggle selection"); } }); createcontextmenu.add(check); homecoming createcontextmenu; } }; grid grid = new grid(store, cm, gridview); gwt gxt
No comments:
Post a Comment