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

How to cancel the double click event of grid checkbox

$
0
0
Hi,

We are using
a) SmartClient Version: SNAPSHOT_v10.1d_2015-07-07/EVAL Deployment (expires 2015.09.05_10.02.49) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

b) Testing using IE 11.0.9600.1772

Problem:
We want to disable the double click event of grid checkbox , Let us know how we can do this? we tried to cancel the event by doing following in the code but when we double click on the checkbox item the "Check mark" from the check box disappears leaving the problem unresolved.
Code:



countryGrid.addRecordDoubleClickHandler(new RecordDoubleClickHandler() {
                       
                        @Override
                        public void onRecordDoubleClick(RecordDoubleClickEvent event) {
                                event.cancel();                               
                        }
               
                });


In order to reproduce the problem we created a sample that is attached to this post.

Attached Files
File Type: java ListGridCheckbox.java (2.8 KB)
File Type: java CountrySampleDataCheckbox.java (1.3 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles