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

时间:2014-08-05 22:05:00   收藏:0   阅读:220

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;

}

 

js循环GridView判断CheckBox是否全部未选中,布布扣,bubuko.com

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!