operGridMst.grid.on("select", function(e){
debugger
var grid = e.sender;
var row=grid.getSelected();
switch(row.newsStatus)
{
case '1':
alert(row.newsStatus);
break;
case '2':
alert(row.newsStatus);
break;
case '4':
alert(row.newsStatus);
break;
case '5':
alert(row.newsStatus);
break;
case '6':
alert(row.newsStatus);
break;
}
}
);
但是在datagrid选中某行的时候,里面的方法没有去执行
function(e){
debugger
var grid = e.sender;
var row=grid.getSelected();
switch(row.newsStatus)
{
case '1':
alert(row.newsStatus);
break;
case '2':
alert(row.newsStatus);
break;
case '4':
alert(row.newsStatus);
break;
case '5':
alert(row.newsStatus);
break;
case '6':
alert(row.newsStatus);
break;
}