Small error int the above....
CODE
createView: function() {
this.mydisplay = new KONtx.elements.Container();
//put whatever you want in the container.
// I am assuming a function called setTitle
this.mygrid = new KONtx.elements.Grid();
}
updateView: fucntion() {
this.mydataset = [{title:"my item 1",thedisplay:this.mydisplay},{title:"my item 2",thedisplay:this.mydisplay}]
this.mygrid.changeDataset(this.mydataset, this.mydataset.length < 1);
}
_cellCreator: function() {
var cell = new KONtx.control.GridCell({
events: {
onFocus: function () { this.info.thedisplay.setTitle(this.info.title); }, //Set the title on focus
onBlur: function () {this.info.thedisplay.setTitle(""); }, //Clear the title on removed focus
}
return cell;
},
_cellUpdater: function(cell, dataitem) {
cell.info = dataitem;
},
I hate not being able to edit your posts.... :a