Based on Sudhaker Raj's post "Checkbox template of my dream":
/javascript.forum.2388.20/checkbox-template-of-my-dream.html
I created this "old-style" basic checkbox-template for version 2, didn't test it in all situations/browsers yet, but as some of you seems to need ... and... (untill Alex finished the new templates) .
Working on some other basic-templates
HTH
///// BLOCK-2 //// (FOR SINGLE CELL -- IF USED DISABLE BLOCK-1)
/*
var lastcol=0;
var lastrow=0;
var defaultcelltemplate = obj.getCellTemplate(0,0);
var NrColumns = obj.getColumnCount()
// write grid html to the page
document.write(obj);
</script>
</body>
</html>
Saturday, December 3, 2005
Great, this is exactly what I have been looking for this the release of b1!!!
Carlos, you a good guy also!
Paul
Saturday, December 3, 2005
Glad to give some help, also found a way to simulate (double-click edition functionality) by replacing the second block with: var lastcol=0;
var lastrow=0;
var defaultcelltemplate = obj.getCellTemplate(0,0);
var NrColumns = obj.getColumnCount()
obj.onCellClicked = function(){
obj.setCellTemplate(defaultcelltemplate, lastcol, lastrow);
obj.getCellTemplate(lastcol, lastrow).refresh();
lastcol = col;
lastrow = row;
}
Need to add the line: obj.setCellEditable(false);
Carlos
Saturday, December 3, 2005
Carlos You are The Best
Josh
Monday, December 5, 2005
Hi Carlos
Its Great . and I really appreciate u have given a good workaround for the
checkbox template which every one was badly looking for .. But I need
One More Help I would Like TO know How To use the same for a
AW.XML.Table
My Problem Is I have Got A grid In Which i needs data from Xml. But For the
first column i need to set checkbox as the template . and for the rest of the cells data should be from xml .