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
100
Cancel PostBack originated by Grid_Click event...
posted

Hi,

I would like to know if there is a simple and easy way to cancel the PostBack originated by a Grid_Click event?

I have a UltraWebGrid in my page, and I need to know which cell the user just clicked, but do not want it to start a PostBack ... is there any way?

Thanks,

Paulo Silva

  • 100
    posted

    Hi,

    The issue related to the Cancel PostBack is solved ... I created an ClientSideEvent "CellClickHandler", with the next code:

    var newCell = igtbl_getCellById(cellID);

    var valorCell = igtbl_getCellById(cellID).getValue();

    if(valorCell !="") //

    if (newCell !=null)

    {

    igtbl_cancelPostBack();

    }

    else

    {

    igtbl_postback();

    }

    The CancelPostBack is working, but I the PostBack not ... How can I make it work?

     

    Thanks,

    Paulo Silva