js循环GridView判断CheckBox是否全部未选中

function isQueryPriceReplyProduct() {

   var gridItem;

   var itemIndex = 0;

   var IDS = '';

   while (gridItem = dgQueryPriceReplyProduct.Table.GetRow(itemIndex)) {

       itemIndex++;

       if (!gridItem.Cells[0].Value) {

          continue;

       }

       IDS += gridItem.Cells[1].Value + ','

   }

   if (new String(IDS).length == 0) {

        messageTips("请选择至少一行数据", 'e');

        return false;

   }

   return true;

}

 

posted on 2014-08-05 19:10  lijie20111015  阅读(189)  评论(0)    收藏  举报