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
510
Problem with Ajax call from webgrid cell edit
posted

Hi,

I am facing a problem with ultrawebgrid that I used in my asp.net page. For one of the columns, say "Status" in the grid, there is an editor control - webcombo. Whenever the user clicks this column, I dynamically populate the webcomobo using an AJAX call (using XMLHttpRequest) in the "BeforeEnterEditModeHandler" client side event. The first click seems to be working fine. The subsequent clicks are not even invoking my Ajax page. I am not even hitting that break pointer in the Ajax page method. Instead once I make the send call of the XMLHttpRequest, while debugging, it takes me directly to igtbl_fireEvent - to this line:

if (gs.GridIsLoaded && result != true && eventObj[1] >= 1 && !gs.CancelPostBack)
        igtbl_needPostBack(gn);
    gs.CancelPostBack = false;

Finally, it sets the CancelPostBack to false....probably, this may be causing the problem because, the grid is trying to postback. I've this grid in an asp.net UpdatePanel. Can anybody help me with this? Am I doing wrong somewhere?

Any idea is highly appreciated. I am in a crucial stage of my project and I am unable to figure out what's happening.

Thanks,

Kala