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
135
Cant update webgrid cells from client script
posted

I am trying to update the value of a cell through any means possible (innerHTML,  cell.appendChild(), etc) and it appears that it is working when I step through the code, but it does not actually reflect the change in the browser. Its almost like the elements on the page are readonly.

Does anybody have any ideas as to why this is not updating on the browser? Please let me know if you need any more info.

Thanks,

Andrew 

  • 135
    posted

    The problem was that the grid was doing a postback and overwriting the content that I had just changed. It was fast enough that I was not able to see it, but it didn't get past Fiddler. =)

     I added this line to the method to block the postback (not very intuitive there IG, that client clicks on an html table cause postback???).

    igtbl_cancelPostBack(gridName); //originally wrote the wrong method here.