Question
can't get cfgrid rowcount
i'm trying to get the rowcount of a cfgrid on cf9, and if 0 switch a message to user.
i've tried a js attached to the onLoad of the cfgrid, keeps throwing Expected ')' and i don't see where?
function getGridData() {
var mygrid = ColdFusion.Grid.getGridObject('cApps');
var mydata = mygrid.getStore();
rowCountVal = mydata.totalLength;
alert(rowCountVal);
}
thanks for any help
