I anticipate that I have over looked the obvious, but this one has me stumped. The scenario is this:
Any Help Greatly Appreciated.
Neil
Two questions:
Are you using a WebAsyncRefreshPanel or an UpdatePanel on your page? If so, these may be causing your styles defined in InitializeLayout to be lost. You may want to style your grids using CSS instead, if this is the case.
How are you passing the information from the parent grid to the child grid? This may simply be an order-of-events issue, depending on what you're doing and when.
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?