Hi,
I looked at CSOM samples and used "cellCliced" function in my web application. But now I'm experiencing serious problem.
In my gridView, I have
<ig:gridView id="resultGrid" binding="#{transacBean.resultGrid}" dataSource="#{transacBean.resultGridData}" style="height: 150px;width:1220px;" resizableColumns="true" bottomPagerRendered="true" topPagerRendered="false">
<ig:gridClientEvents id="transactionGridClientEvents" cellClicked="zap"/> ...
/>
in my zap function which is almost same as the one shown in the sample:
function zap(sender, args) { var cell = new IgGridCell(args.get_browserEvent().target); if(ig.isNull(cell)) return;
var line = cell.getRowIndex(); var rowPos = cell.getIndex();}
But cell.getRowIndex() or cell.getIndex() throw exceptions sometimes. I thought it is mouse click double or single issue. But it is not. For the same cell, sometime single click causes exception sometimes double click causes exception. It is very unpredicative.
The event handler zap() will be called single or double click which is what I want. But for some reason, cell object is not always correct.
Please help.
Thanks.
Hello,
I made a sample to reproduce the issue but I couldn't.
My jsp code is in the attached file.
Please could you provide me with the thrown exceptions
in your application ( description or stacktrace )
Thank you , Tsvetelina
Hi Tsvetelina,
I'm using JSF but it should not make differnce. In one of my grid, I use the above code and I don't have the problem. But in another grid which is pretty much the same, I have the problem. It seems to me that the problem is related to the controls embeded in the column. For example, if date control is involved:
<ig:column id="idColumnDate" resizable="true"> <f:facet name="header"> <h:outputText id="#{tab}HeaderDate" value="#{caseHistoryTMS.date}"/> </f:facet> <h:outputText id="idDateCreated" value="#{DATA_ROW.date}"> <f:convertDateTime id="#{tab}dateConvert" locale="#{caseHistoryBean.locale}" type="both"/> </h:outputText> </ig:column>
Is there a way I can tell in zap() function if it is a mouse single or double click? Or can I specify that the function zap() is only called when user double click?
Thanks