Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
475
<fic:gridClientEvents cellClicked="zap"/> problem
posted

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.

 

Parents Reply Children
No Data