},
handleScroll : function(e){
- Roo.log('calling herer??????');
this.syncScroll();
var sb = this.scroller.dom;
this.grid.fireEvent("bodyscroll", sb.scrollLeft, sb.scrollTop);
},
handleWheel : function(e){
- Roo.log('calling handle Wheel???????????????????');
- Roo.log(this.handleWheel());
var d = e.getWheelDelta();
this.scroller.dom.scrollTop -= d*22;
// set this here to prevent jumpy scrolling on large tables
name : typeof name == 'undefined' ? ds.fields.get(i).name : name,
renderer : cm.getRenderer(i),
id : cm.getColumnId(i),
- locked : cm.isLocked(i)
+ locked : cm.isLocked(i),
+ has_editor : cm.isCellEditable(i)
};
}
if(p.value == undefined || p.value === "") {
p.value = " ";
}
- if(r.dirty && typeof r.modified[c.name] !== 'undefined'){
- p.css += p.css ? ' x-grid-dirty-cell' : 'x-grid-dirty-cell';
+ if(c.has_editor){
+ Roo.log("adding editable celel css");
+ p.css += ' x-grid-editable-cell';
+ }
+ if(c.dirty && typeof r.modified[c.name] !== 'undefined'){
+ p.css += ' x-grid-dirty-cell';
}
var markup = ct.apply(p);
if(!c.locked){
if(p.value == undefined || p.value === "") {
p.value = " ";
}
+ //Roo.log(c);
+ if(c.has_editor){
+ Roo.log("adding editable celel css");
+ p.css += ' x-grid-editable-cell';
+ }
if(r.dirty && typeof r.modified[c.name] !== 'undefined'){
- p.css += p.css ? ' x-grid-dirty-cell' : 'x-grid-dirty-cell';
+ p.css += ' x-grid-dirty-cell'
}
var markup = ct.apply(p);
this.grid.fireEvent('rowclass', this, rowcfg);
alt.push(rowcfg.rowClass);
}
+ Roo.log(alt);
rp.alt = alt.join(" ");
rp.cells = lcb.join("");
lbuf[lbuf.length] = rt.apply(rp);
},this);
this.scroller.on("scroll", this.handleScroll, this);
-//
-// this.lockedBody.on("mousewheel", this.handleWheel, this);
-// this.mainBody.on("mousewheel", this.handleWheel, this);
+ this.lockedBody.on("mousewheel", this.handleWheel, this);
+ this.mainBody.on("mousewheel", this.handleWheel, this);
this.mainHd.on("mouseover", this.handleHdOver, this);
this.mainHd.on("mouseout", this.handleHdOut, this);