0

I created a DOJO 1.6 DataGrid with CheckboxSelector as shown in the tutorials. Now I want to disable the onSelectionChanged event for rows, if they are clicked. This event should only be fired, if the checkbox is clicked.

それはどのように達成できますか?私が見逃したコンストラクターのプロパティはありますか?

4

2 に答える 2

0

onRowClick選択ロジックを実行しないようにメソッドをオーバーライドする必要があります。

var grid = new dojox.grid.DataGrid({
    store: store,
    structure: layout,
    onRowClick: function(e){
       this.edit.rowClick(e);
       //this.selection.clickSelectEvent(e);
    }
  },
  node
);

http://jsfiddle.net/cswing/byfaf/

于 2012-06-06T14:26:12.963 に答える