Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Grid Header Button

$
0
0
SmartClient Version: v9.0_2013-07-03/LGPL Development Only (built 2013-07-03)

Browser : Chrome Version 31.0.1650.63 m

Hello,

I am adding a checkbox on grid header
Code:

final Button bb = new Button();
bb.setActionType(SelectionType.CHECKBOX);
bb.setIcon("../images/unchecked.png");
bb.addClickHandler(new ClickHandler(){
  @Override
  public void onClick(ClickEvent event) {
    System.out.println("In Click...");
  //here logic to change the icon etc is present.
  }
});
listGridField.setHeaderButtonProperties(bb);

The click handler was working fine in Smartgwt 3. But after I upgraded it to 4 this feature has stopped working.
Visually the button/checkbox is visible, but on clicking nothing happens.

Any help in this is appreciated.

Thanks,
Anup Doshi.

Viewing all articles
Browse latest Browse all 4756

Trending Articles