Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    how to choose record when i double click on ListGrid ?

    how to choose record when i double click on ListGrid ?
    请问如何在ListGrid上双击选择某一条记录?而不是依靠点击类表前的复选框选中。


    Code:
    public class DataListGrid extends ListGrid {
    
    	public DataListGrid(){
    		setWidth100();
    		setHeight100();
    		setShowAllRecords(true);
    		setSelectionType(SelectionStyle.SIMPLE);
    		setSelectionAppearance(SelectionAppearance.CHECKBOX);
    		setShowHeaderMenuButton(false);		setShowHeaderContextMenu(false
    		setCanSort(false
    		setCanResizeFields(false	
    		addHeaderDoubleClickHandler(new HeaderDoubleClickHandler() {
    			
    			public void onHeaderDoubleClick(HeaderDoubleClickEvent event) {
    				
    			}
    		});
    	}
    }
Working...
X