我使用UltraWebGrid控件,在第一列设置为CheckBox属性,想选种某些行的CheckBox,然后按删除按钮删除该行,或者选择某一CheckBox控件全选UltraWebGrid控件选中的CheckBox或取消,在课户端如何实现?谢谢。
解决方案 »
- SqlDataSource控件怎么获取不到存储过程输出参数的值
- 恳求大家的高见??
- 如何手动遍历添加DropDownList
- vs2005-创建-网站,打开后看到的却是项目模板(windows应用程序,类库,windows控件库等等)就是不见了网站模板?!
- 程序提示连接池满
- 讨论一下网站后台管理的管理员用户名和密码放在何处合适
- 100分马上结!分页的问题,如何增加一个输入页码,点击GO进入指定页数?
- 关于InvokeMember的使用
- 请教datagrid的时间格式问题
- 如何才能在循环体中把Address1、Address2、Address3、Address4等以此类推的HTML控件名表示出来
- 我想用DataList绑定三张图片(这三张在一个单元格中)(三张图片分别存在三个字段中)轮换显示图片(每隔几秒).
- 求助,母版页和css的引用问题
{
var chkall= document.all["chkAll"];
var chkother= document.getElementsByTagName("input");
for (var i=0;i<chkother.length;i++)
{
if( chkother[i].type=='checkbox')
{
if(chkother[i].id.indexOf('chkExport')>-1)
{
if(chkall.checked==true)
{
chkother[i].checked=true;
}
else
{
chkother[i].checked=false;
}
}
}
}
}
function Delete()
{
var al = new Array();
var chkother= document.getElementsByTagName("input");
for(var i=0,j=0;i<chkother.length;i++)
{
if( chkother[i].type =='checkbox')
{
if(chkother[i].id.indexOf('chkExport')>-1)
{
if(chkother[i].checked==true)
{
al[j] =chkother[i].value;
j++;
}
}
}
}
if (al == "")
{
alert('You need to select a row in the list before selecting Delete.\r\nPlease select a row and try again.');
}
else if (window.confirm("Are you sure to delete all these?"))
{
var deleteID='<%=btndelete.ClientID%>';
window.document.all(deleteID).click();
}
else { return false; }
}