On a ListGridField there is the api: "addRecordClickHandler" but there isn't any "addCellClickHandler". Any particular reason?
I ask because I was trying to use a link field and setting the target to "javascript" which the doc states: "if you set listGridField.target to "javascript", the default behavior is to catch and consume mouse-clicks that would result in the link being followed. Instead, the ListGrid.cellClick event is fired for the containing cell."
So in order to have my handler called I have to add the CellClickHandler onto the listgrid (which then gets called for every field) rather than just on the actual listgridfield itself.
Thanks.
I ask because I was trying to use a link field and setting the target to "javascript" which the doc states: "if you set listGridField.target to "javascript", the default behavior is to catch and consume mouse-clicks that would result in the link being followed. Instead, the ListGrid.cellClick event is fired for the containing cell."
So in order to have my handler called I have to add the CellClickHandler onto the listgrid (which then gets called for every field) rather than just on the actual listgridfield itself.
Thanks.
Comment