I anticipate that I have over looked the obvious, but this one has me stumped. The scenario is this:
Any Help Greatly Appreciated.
Neil
PV87669,
Since you're using WARP, your issue isn't the same as the one mentioned above.
When using WARP (or UpdatePanel), any items normally rendered to the HEAD section of the page are not included on an async callback. This includes any style information that our controls dynamically create. The solution is to style your controls (both ours and others) using CSS classes that are available to the page with all responses, inculding the initial response. You can likely find more details about this on other posts in these forums.
Was there a final resolution to this? I'm attempting the same thing, with two grids as master-detail, except I want the detail grid to refresh/display only after a button is clicked.
My selected key label is visible not hidden, and currently set by client-side script from master grid.
If the button and the detail grid are in a WebAsyncRefreshPanel, the requery takes place (I can tell from the amount of network traffic in relation to the master that was selected) but the detail grid becomes invisible, perhaps losing its styling as you mentioned. If I don't click the button, but use ajax features on the detail grid (e.g. click on a column heading to sort) this triggers the query and displays the results.
I want to implement this without a full-page refresh. Perhaps there's an easy way client-side to ask the detail grid to request a refresh of its data, without placing it in a WARP? Or a way to re-trigger InitializeLayout styling so the grid doesn't vanish?
Set the grid's DisplayLayout.LoadOnDemand property to any value other than "Xml". "NotSet" is the best alternative for simple testing, which essentially turns off all of the grid's load-on-demand functionality.
how does one "turn off" AJAX for the webgrid to test... i'm using 8.1
I will try and submit a support request.