User Profile & Activity

Frank Bruce Member
Page
of 15
Posted: August 11, 2010 5:27 AM

thank you

Posted: August 11, 2010 4:07 AM

I say is this:
<LayoutSettings AllowSelectColumns="Yes"  AllowContextMenu="true" >

        </LayoutSettings>

 

now i see the "remove this column"  enable!

But thank you  all the  same

I have solved the problem

Posted: August 10, 2010 5:02 AM

I see how to hide column by javascript Code!

But i want to know

how to hide one column by Filter in WebGrid 7?  Please help me!

//删除多行
function deleteRows()
{
//if(b[0]==null)
//{
//alert('null')
//}
var b=new Array();
b=ShowSelection();
var grid = ISGetObject("WebGrid1");
var i=0;
 var maxRow=b.length;//待删除的行数量
 var updateProcess = setInterval (function ()   
   { if (!grid.IsInProgress && i < maxRow)       
   {   

  var rows = grid.RootTable.GetCheckedRows();
  var row = grid.RootTable.ToRowObject(rows[i])
   row .Delete();
    i++;        
}       
    if (i >= maxRow)
         
    {
     clearInterval(updateProcess);             
    updateProcess = null;       
    } }, 1);

}

I can delete several rows  by js Code
//获取选择的N行
 function ShowSelection()
        {
      var grid = ISGetObject("WebGrid1");
      var rows = grid.RootTable.GetCheckedRows();      
      var arr=new Array();
 while(rows.length!=0)
 {
 for (var i=0;i<rows.length; i++)
                {         
                    var row = grid.RootTable.ToRowObject(rows[i]);
                    arr[i]=String(row.KeyValue);//行的主键值
                }
return arr;  break;
               
 }
 if(rows.length==0)
  {alert('至少选择两行!');
  return arr;
   }      

        }

thank you

the problem has been resolved.thank you all the same

I have got the answer```

All times are GMT -5. The time now is 4:26 AM.
Previous Next