Get the template type (checkbox, combo, etc.) for a column/cell
Ok, I had this working a few weeks ago, shelved the code (didn't end up needing it at the time) and then brought it back for use elsewhere. Now I can't get it to work.
What I want to do is dynamically determine what kind of cell (combo, checkbox, etctera) I am working with. The code that used to work is:
obj.onCellSelectedChanged = function(event){
var col = this.getCurrentColumn();
var row = this.getCurrentRow();
window.alert(obj.getCellTemplate(parseInt(col), parseInt(row)).element().getAttribute("awx"));
}
This used to pop up the word "combo" for a combobox. Now it pops up "null"
I'm basically looking for a way to dynamically determine if the current cell being edited is a checkbox...
What I want to do is dynamically determine what kind of cell (combo, checkbox, etctera) I am working with. The code that used to work is:
obj.onCellSelectedChanged = function(event){
var col = this.getCurrentColumn();
var row = this.getCurrentRow();
window.alert(obj.getCellTemplate(parseInt(col), parseInt(row)).element().getAttribute("awx"));
}
This used to pop up the word "combo" for a combobox. Now it pops up "null"
I'm basically looking for a way to dynamically determine if the current cell being edited is a checkbox...
andrewzoo
January 9,