2010-11-19 6 views

Répondre

0

Pas trop sûr, mais hypothétiquement, vous pouvez donner à chaque case à cocher une classe, par exemple chkbox, et ensuite un code jquery pour gérer un événement de clic.

$ (« chkbox ») cliquez sur (fonction() { alert ("voici où vous mettez votre code popup"); });

Vous pouvez utiliser window.open ici

1

J'ai fais une fonction JS et juste passer id de votre liste comme en

OnClientClick="return GetSelectedCheckBoxInGrid('grdCustomer');" 

function GetSelectedCheckBoxInGrid(obj) 
{    
     var con = 'ctl00_ContentPlaceHolder1_' + obj 
     var Parent = document.getElementById(con); 
     var TargetChildControl = "chk"; 

     if (Parent==null) 
     { 
      return false;  
     } 

     var items = Parent.getElementsByTagName("input"); 

     for(var n = 0; n < items.length; ++n) 
     if(items[n].type == 'checkbox' && 
      items[n].id.indexOf(TargetChildControl,0) >= 0 && 
      items[n].checked == false) 
      alert('Hi');return false;) 

} 

Je pense que ce que

+0

+1 pour une bonne solution –

Questions connexes