2

I'm generating the Div's dynamically on the RadPanelBar using jquery. On the page load it works fine. However, if I collapse and expand the RadPanelBar the generated divs are disappears from it.

This is how I'm registering the script:

ClientScript.RegisterStartupScript(this.GetType(), "GetLayout", "GetLayout('" + j + "');", true);

where j is a array of parameters to draw div.

Could some on please advice on it?

manjunath
  • 21
  • 2

2 Answers2

0

You could possibly OnClientItemClicked event, and then redraw the content. You would need to have the parameters already saved on the client in order for this to happen.

You could wrap it in a RadAjaxPanel and force a postback, and then add a ResponseScript to then execute your GetLayout method.

KRichardson
  • 990
  • 7
  • 12
0

If you want to keep your divs,you are going to need to one of 2 things. 1>Persist them in a hidden control on the client or somewhere back in the server 2> Not refresh the panel when you call the Ajax Manager. When you refresh the ajax manager, the panel goes back to start.

done_merson
  • 2,800
  • 2
  • 22
  • 30