<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ipoipo's Weblog</title>
	<atom:link href="http://ipoipo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ipoipo.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 23 Apr 2008 00:17:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ipoipo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ipoipo's Weblog</title>
		<link>http://ipoipo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ipoipo.wordpress.com/osd.xml" title="Ipoipo&#039;s Weblog" />
	<atom:link rel='hub' href='http://ipoipo.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SharePoint 2007 Web Parts and Telerik. Not the holy of holies.</title>
		<link>http://ipoipo.wordpress.com/2008/04/22/sharepoint-2007-web-parts-and-telerik-not-the-holy-of-holies/</link>
		<comments>http://ipoipo.wordpress.com/2008/04/22/sharepoint-2007-web-parts-and-telerik-not-the-holy-of-holies/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 00:07:05 +0000</pubDate>
		<dc:creator>ipoipo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Web Part]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://ipoipo.wordpress.com/?p=4</guid>
		<description><![CDATA[I have been using Telerik&#8217;s controls in WSS Web Parts since late 2006. When they introduced RadControls for AJAX, I jumped onto the bandwagon, right there with the rest of them being carted to the guillotine. Telerik named these controls &#8220;Prometheus&#8221; after the Titan who gave humans fire, and who caused Zeus to visit upon [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ipoipo.wordpress.com&amp;blog=3549853&amp;post=4&amp;subd=ipoipo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been using Telerik&#8217;s controls in WSS Web Parts since late 2006. When they introduced RadControls for AJAX, I jumped onto the bandwagon, right there with the rest of them being carted to the guillotine. Telerik named these controls &#8220;Prometheus&#8221; after the Titan who gave humans fire, and who caused Zeus to visit upon us a certain &#8220;Pandora&#8221; &#8211; she of the B.O.X. Commenting further on the choice of name, I thought it more apt to refer to it as &#8220;Sysiphus&#8221;, he of rock-up-the-side-of-mountain-pushing fame.</p>
<p>But I digress. Telerik&#8217;s 2008 Q1 RadControls for AJAX are not quite ready for WSS/SP Web Parts. The RadAjaxManager, RadAjaxPanel and RadAjaxLoadingPanel combo does not seem to be able to operate within WSS.</p>
<p>If you really, really want to use the RadAjaxPanel, make sure that you add it to the Page.Items collection in a base class for your web parts, similarly to adding the MSFT ScriptManager:<code><br />
/// &lt;summary&gt;<br />
/// Oninit fires before page load. Modifications to the page that are necessary to support Ajax are done here.<br />
/// &lt;/summary&gt;<br />
protected override void OnInit(EventArgs e)<br />
{<br />
base.OnInit(e);<br />
//get the existing ScriptManager if it exists on the page<br />
aspAjaxManager = ScriptManager.GetCurrent(this.Page);<br />
if (aspAjaxManager == null)<br />
{<br />
//create new ScriptManager and EnablePartialRendering<br />
aspAjaxManager = new ScriptManager();<br />
aspAjaxManager.ID = "AspAjaxManager1";<br />
aspAjaxManager.EnablePartialRendering = true;<br />
// Fix problem with postbacks and form actions (DevDiv 55525)<br />
Page.ClientScript.RegisterStartupScript(typeof(AjaxBasePart), this.ID, "_spOriginalFormAction = document.forms[0].action;", true);<br />
//tag:"form" att:"onsubmit" val:"return _spFormOnSubmitWrapper()" blocks async postbacks after the first one<br />
//not calling "_spFormOnSubmitWrapper()" breaks all postbacks<br />
//returning true all the time, somewhat defeats the purpose of the _spFormOnSubmitWrapper() which is to block repetitive postbacks, but it allows MS AJAX Extensions to work properly<br />
//its a hack that hopefully has minimal effect<br />
if (this.Page.Form != null)<br />
{<br />
string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"];<br />
if (!string.IsNullOrEmpty(formOnSubmitAtt) &amp;&amp; formOnSubmitAtt == "return _spFormOnSubmitWrapper();")<br />
{<br />
this.Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();";<br />
}<br />
//add the ScriptManager as the first control in the Page.Form<br />
//I don't think this actually matters, but I did it to be consistent with how you are supposed to place the ScriptManager when used declaritevly<br />
this.Page.Form.Controls.AddAt(0, aspAjaxManager);<br />
}<br />
}<br />
if (telerikAjaxManager == null)<br />
{<br />
telerikAjaxManager = new RadAjaxManager();<br />
telerikAjaxManager.EnableAJAX = true;<br />
telerikAjaxManager.EnableEmbeddedScripts = true;<br />
telerikAjaxManager.ID = "RadAjaxManager1";<br />
telerikAjaxManager.Enabled = true;<br />
//this.Page.Form.Controls.Add(telerikAjaxManager);<br />
this.Page.Items.Add(typeof(RadAjaxManager), telerikAjaxManager);<br />
}<br />
}</code></p>
<p>Sorry about the indentation! Kind of sucks, doesn&#8217;t it?</p>
<p>But I digress. Feel free to contact me if you want to get it working.</p>
<p>Ipo-Ipo.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ipoipo.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ipoipo.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ipoipo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ipoipo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ipoipo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ipoipo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ipoipo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ipoipo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ipoipo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ipoipo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ipoipo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ipoipo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ipoipo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ipoipo.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ipoipo.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ipoipo.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ipoipo.wordpress.com&amp;blog=3549853&amp;post=4&amp;subd=ipoipo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ipoipo.wordpress.com/2008/04/22/sharepoint-2007-web-parts-and-telerik-not-the-holy-of-holies/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4652b612af2ec5f018ba72b85742a2b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ipoipo</media:title>
		</media:content>
	</item>
	</channel>
</rss>
