Hi,
Well, you will first select one cell by clicking the cell, then double click it, the cell will trigger the event. however if your double click is not quick enough, it will treat as one click and one click select and one click will come into edit value mode. As it is not so smooth you will not use it. you can use ajaxcallonclick instead.
see the below .jsp codes, you can put it under the gridweb demo root directory.
e.g
Sample code:
<%@ page language="java" contentType="text/html; charset=UTF-8" import="com.aspose.gridweb.*"
pageEncoding="UTF-8"%>
<%@include file="/head.jsp" %>
Insert title here
<%
ExtPage BeanManager=ExtPage.getInstance();
GridWebBean gridweb=BeanManager.getBean(request);
out.println(gridweb.getHTMLHead());
%>
hello world
<%
gridweb.setReqRes(request, response);
gridweb.ImportExcelFile("D:\\grid_project\\temp\\gridweb(java)0822\\sample\\WebRoot\\file\\list.xls");
WorkbookEventHandler we=new WorkbookEventHandler(){
public void handleCellEvent(Object sender, CellEventArgs e){
System.out.println("hSaveCommand");
}
};
CellEventHandler ceh=new CellEventHandler(){
public void handleCellEvent(Object sender, CellEventArgs e){
System.out.println("hello cell double click");
}
};
RowColumnEventHandler reh=new RowColumnEventHandler(){
public void handleCellEvent(Object sender, RowColumnEventArgs e){
System.out.println("hello row.... RowColumnEventArgs");
}
};
RowColumnEventHandler cdbclick=new RowColumnEventHandler(){
public void handleCellEvent(Object sender, RowColumnEventArgs e){
System.out.println("hello column double click");
}
};
CellEventStringHandler cesh=new CellEventStringHandler(){
public String handleCellEvent(Object sender, CellEventArgs e){
return e.getCell()+"$$$$hello_CellEventStringHandler";
}
};
CellEventHandler cellcommand=new CellEventHandler(){
public void handleCellEvent(Object sender, CellEventArgs e){
System.out.println("hello cellcommand"+e.getCell());
}
};
gridweb.setEnableDoubleClickEvent(true);
gridweb.SaveCommand=we;
gridweb.CellDoubleClick=ceh;
gridweb.RowDoubleClick=reh;
gridweb.ColumnDoubleClick=cdbclick;
gridweb.CellClickOnAjax=cesh;
gridweb.setOnCellSelectedAjaxCallBackClientFunction("dealwithcellselectcallback");
gridweb.CellCommand=cellcommand;
gridweb.prepareRender();
out.print(gridweb.getHTMLBody());
%>
Hope, this helps a bit.
Thank you.