Hi. I'm using the XmtHttpPanel for the first time. At the moment I have the XmlHttpPanel within a <div id="panelDiv" runat="server">
At the moment I am using callback similar to the first look demo on the Telerik website (ie javascript to set the XmlHttpPanel.value and that then calling code behind).
If I set the panelDiv.visible = false; nothing seems to happen. If I set panel.visible = false; the panel disappears. However, if I then make another click that results in panel.visible=true; I get an error:
Server Error in '/prototype' Application.
--------------------------------------------------------------------------------
Script control 'Async_highlights' is not a registered script control. Script controls must be registered using RegisterScriptControl()
before calling RegisterScriptDescriptors().
Parameter name: scriptControl
I also have a button separate to the XmlHttlpPanel that I want to also use to switch the panel's visibility. I found problem using .visible but it seems to work using the display attribute.
Can you give any advice about the best way to hide/show an XmlHttpPanel dynamically (I don't care about the content because if the panel is subsequently revealed again the content will be updated).
At the moment I am using callback similar to the first look demo on the Telerik website (ie javascript to set the XmlHttpPanel.value and that then calling code behind).
If I set the panelDiv.visible = false; nothing seems to happen. If I set panel.visible = false; the panel disappears. However, if I then make another click that results in panel.visible=true; I get an error:
Server Error in '/prototype' Application.
--------------------------------------------------------------------------------
Script control 'Async_highlights' is not a registered script control. Script controls must be registered using RegisterScriptControl()
before calling RegisterScriptDescriptors().
Parameter name: scriptControl
I also have a button separate to the XmlHttlpPanel that I want to also use to switch the panel's visibility. I found problem using .visible but it seems to work using the display attribute.
Can you give any advice about the best way to hide/show an XmlHttpPanel dynamically (I don't care about the content because if the panel is subsequently revealed again the content will be updated).