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
315
WebGrids in WARP
posted

Hi,

 I'm having some problems with an app; it has two webgrids on a form, each within a WARP.

The LinkedRefreshControlID of WARP1 is set to WARP2 - when i filter WebGrid1 i need it update the content of WebGrid2 accrodingly. I was under the impression that linking the two WARP controls would do this, but it doesn't seem to work.

 I've tried using the RefreshComplete ClientSide event to refresh WARP2 but this doesn't seem to fire at all.

As a test, i've added a button inside of WARP1 - on click of this, WARP2 refreshes as expected.

So, the problem seems to be related to the WebGrid inside WARP1. It's LoadOnDemand is set to XML, as i need to populate the filterList programatically. Could it be this that is stopping WARP2 from refreshing.

 Thanks in advance

jon

  • 10880
    posted

    The Warp works by capturing a full page postback and processing it asynchronously.  Since you are using AJAX to filter your grid, the Warp panel is not instantiating the refresh and therefore not refreshing the other Warp.  In the case of a button, a full page postback is being initiated and therefore you are seeing what you expect.

    There are two ways that I can think of right now.  You can not use the Ajax of the grid and let the Warp handle it.  You can handle the client side AfterXmlHttpResponseProcessed event off the first grid and refresh the 2nd grid/warp.