EXT表格 怎么获取当前点击的单元格? EXT表格 怎么获取当前点击的单元格,就是我点击的时候需要让该单元格高亮显示。。 focusCell( Number row, Number col ) 怎么用的? 知道的 指点一下,小弟刚学EXT 谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 怎么个高亮显示法,focusCell是从哪来的方法 把你的grid 代码 给我看看,或者QQ 聊 66014588 ext 画出来的表格 比如说有 A B C 三列 对应的格式: A B C 2 3 15 12 4 6当我点击 C列 下面的 6 时,让这个单元格 底色变红色。 类似这样的功能。有会的指点一下 ,谢谢!! 问题已经解决......无语了!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); } Tomcat 如何配置数据源? 问一个关于struts2 的问题???? 我记得文档打包成jar后可以在tomcat中发布的 忘了怎么弄了 请高手介绍几本关于java开发的书,谢谢了~!!!!! iframe问题 jsp的一个傻瓜问题 在plsql中可以正常运行,在JSP中却报错。 有关文件操作,请大家帮忙看一下 如何将Excel文件读入java程序 在线!! 无人机航拍图像,在web怎么拼接成地图,并且和谷歌地图无缝拼接 有人做过网络爬虫来爬反爬的网页么? jquery easyui 分页是怎么把page 和 rows 传到后台的
对应的格式: A B C
2 3 15
12 4 6当我点击 C列 下面的 6 时,让这个单元格 底色变红色。 类似这样的功能。有会的指点一下 ,谢谢!!
分享一下:
[ 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);
}