Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Client Side javascipt on cellButtonClicked
posted

Hi i have an updatePanel (Ajax)  and inside a ultrawebgrid with two columns as buttons delete.update

On the clientside events i added a function to ask the user do you want to delete and then calls the server side code to actually delete the row the javscript  function is

 

 

 

 

 

 

function

alert(gridName, cellId){

 

 

var grid=igtbl_getGridById('<%= documents_grid.ClientID %>');

 

 

var cell=igtbl_getCellById(cellId);

 

 

if (cell.Column.Key=='Delete'

){

 

 

var c=confirm("‘Do you want to delete");

 

 

if (c){

igtbl_doPostBack(gridName);

}

else {

igtbl_cancelPostBack(gridName)

}

}

the problem is the postBack never occurs. The updatepanel is in conditional mode asynchronous for the two buttons.When i remove the clienteventhadling all works ok.

Any ideas

Thanks in advance