EXT表格 怎么获取当前点击的单元格,就是我点击的时候需要让该单元格高亮显示。。
     focusCell( Number row, Number col )  怎么用的?
  知道的 指点一下,小弟刚学EXT  谢谢!

解决方案 »

  1.   

    怎么个高亮显示法,focusCell是从哪来的方法
      

  2.   

    把你的grid 代码 给我看看,或者QQ 聊 66014588
      

  3.   

    ext 画出来的表格 比如说有 A B C 三列 
        对应的格式:  A   B   C
                    2   3   15
                    12  4    6当我点击 C列 下面的 6 时,让这个单元格 底色变红色。   类似这样的功能。有会的指点一下 ,谢谢!!
      

  4.   

    问题已经解决......无语了!EXT 有自己的 cellclick事件,
      分享一下:
    [ grid.on('cellclick',function(a,b,c,d,e){

       var rowIndex = $("#cellrowIndex").val();
           var colIndex = $("#cellcolIndex").val();
           var oldColor = $("#oldColor").val();
          
          if(rowIndex != b || colIndex != c)
          {   
              if(rowIndex == "" || colIndex == "" )
          {
             rowIndex = 0;
             colIndex = 0;
          }
               grid.getView().getCell(rowIndex,colIndex).style.backgroundColor=oldColor;
                var oldColor = grid.getView().getCell(b,c).style.backgroundColor;        
           grid.getView().getCell(b,c).style.backgroundColor="#B0CFDB";
       $("#cellrowIndex").val(b);
           $("#cellcolIndex").val(c);
           $("#oldColor").val(oldColor);
          }