当前位置: 代码迷 >> JavaScript >> 解决extjs grid文字不能选中的有关问题
  详细解决方案

解决extjs grid文字不能选中的有关问题

热度:97   发布时间:2012-09-27 11:11:17.0
解决extjs grid文字不能选中的问题

转载:http://floydd.iteye.com/blog/1326342

解决extjs grid文字不能选中的问题

    博客分类:?
  • web
  • javascript
  • css
extjsgrid文字不能选中

?

Css代码?
  1. .x-selectable,?.x-selectable?*?{?????
  2. ?-moz-user-select:?text!important?;?????
  3. ?-khtml-user-select:?text!important?;?????
  4. }??

Javascript代码?
  1. //?enable?grid?cell?to?be?selected?in?chrome(x-selectable)/firefox(x-selectable)/IE(unselectable)??
  2. Ext.grid.GridView.prototype.cellTpl?=?new?Ext.Template(Ext.grid.GridView.prototype.cellTpl.html??
  3. ????????.replace('unselectable="on"',?'').replace('class="',??
  4. ????????????????'class="x-selectable?'))??

?

  相关解决方案