This one is a little bizarre, so forgive me if I don't describe this perfectly.
I'm in the process of updating custom web parts from our 2007 to 2010 deployment. For 2007, I had a Smartpart-style web part (ascx control wrapped in a web part class). For 2010, I'm taking advantage of the VS2010 Web Part projects (Visual Web Part in this case) and the native SP debugging.
The control for the webpart is designed around the following structure:
RadAjaxPanel
RadTabStrip (2 tabs)
RadMultiPage
Pageview1
Formview (bound to ObjectDataSource)
Pageview2
RadEditor
Due to databinding and speed concerns, the original web part was designed to use the RenderSelectedPageOnly option on the multipage. So with this setup, I'm experiencing the following behaviors:
1. When RenderSelectedPageOnly=false and the formview is in the display view, everything works great - editor loads content properly, allows editing correctly, etc.
2. RenderSelectedPage= false, Formview in Edit view - when you click on the tab to bring up the Editor, there is an outline around where the editor should be, but there is no content nor any controls.
3. When RenderSelectedPageOnly = true, the Editor does not display correctly, regardless of what mode the Formview is in.
Occasionally, with #2 and 3, the following javascript error displays momentarily:
Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: type from ScriptResource.axd.
Any thoughts on what could be causing this strange series of behaviors?
ETA - I spent more time playing with this, and the problem seems to be with the Ajax controls (or at least how the editor is working with them). When I remove the AjaxPanel and just let the webpart go pure postback, everything works great. I then tried it with a RadAjaxManager instead of the panel, and the same behavior was displayed as with the panel. Wanted to include that info if that helps track this issue down.
I'm in the process of updating custom web parts from our 2007 to 2010 deployment. For 2007, I had a Smartpart-style web part (ascx control wrapped in a web part class). For 2010, I'm taking advantage of the VS2010 Web Part projects (Visual Web Part in this case) and the native SP debugging.
The control for the webpart is designed around the following structure:
RadAjaxPanel
RadTabStrip (2 tabs)
RadMultiPage
Pageview1
Formview (bound to ObjectDataSource)
Pageview2
RadEditor
Due to databinding and speed concerns, the original web part was designed to use the RenderSelectedPageOnly option on the multipage. So with this setup, I'm experiencing the following behaviors:
1. When RenderSelectedPageOnly=false and the formview is in the display view, everything works great - editor loads content properly, allows editing correctly, etc.
2. RenderSelectedPage= false, Formview in Edit view - when you click on the tab to bring up the Editor, there is an outline around where the editor should be, but there is no content nor any controls.
3. When RenderSelectedPageOnly = true, the Editor does not display correctly, regardless of what mode the Formview is in.
Occasionally, with #2 and 3, the following javascript error displays momentarily:
Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: type from ScriptResource.axd.
Any thoughts on what could be causing this strange series of behaviors?
ETA - I spent more time playing with this, and the problem seems to be with the Ajax controls (or at least how the editor is working with them). When I remove the AjaxPanel and just let the webpart go pure postback, everything works great. I then tried it with a RadAjaxManager instead of the panel, and the same behavior was displayed as with the panel. Wanted to include that info if that helps track this issue down.