<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Setting selectable ranges in the Flex DateField control</title>
	<atom:link href="http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Fri, 19 Mar 2010 15:41:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andi</title>
		<link>http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/comment-page-1/#comment-7222</link>
		<dc:creator>Andi</dc:creator>
		<pubDate>Thu, 11 Mar 2010 10:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/#comment-7222</guid>
		<description>Thanks!!!!!!  It’s very helpfull!</description>
		<content:encoded><![CDATA[<p>Thanks!!!!!!  It’s very helpfull!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gunjan kumar</title>
		<link>http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/comment-page-1/#comment-6035</link>
		<dc:creator>Gunjan kumar</dc:creator>
		<pubDate>Fri, 16 Oct 2009 17:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/#comment-6035</guid>
		<description>It’s helpfull.
Thanks Peter</description>
		<content:encoded><![CDATA[<p>It’s helpfull.<br />
Thanks Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pargat</title>
		<link>http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/comment-page-1/#comment-5424</link>
		<dc:creator>Pargat</dc:creator>
		<pubDate>Fri, 28 Aug 2009 13:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/#comment-5424</guid>
		<description>Thanks Peter. Great post.</description>
		<content:encoded><![CDATA[<p>Thanks Peter. Great post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/comment-page-1/#comment-2130</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Fri, 23 May 2008 17:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/#comment-2130</guid>
		<description>Okay, I figured out how to assign a selectableRange that isn&#039;t hard coded to a DateField that is used as an itemRenderer.  The key piece I was missing was to use outerDocument to reference the object that would be used as the range:
&lt;pre class=&quot;code&quot;&gt;
&lt;mx:Script&gt;
&lt;![CDATA[
private var dateRange:Object = new Object();
dateRange[&quot;rangeStart&quot;] = startDate;
dateRange[&quot;rangeEnd&quot;] = endDate;
]]&gt;
&lt;/mx:Script&gt;

...

&lt;mx:DataGrid&gt;
  &lt;mx:columns&gt;
    &lt;mx:DataGridColumn&gt;
      &lt;mx:itemRenderer&gt;
        &lt;mx:Component&gt;
          &lt;mx:DateField selectableRange=&quot;{outerDocument.dateRange}&quot; /&gt;
        &lt;/mx:Component&gt;
      &lt;/mx:itemRenderer&gt;
    &lt;/mx:DataGridColumn&gt;
  &lt;/mx:columns&gt;
&lt;/mx:DataGrid&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Okay, I figured out how to assign a selectableRange that isn&#8217;t hard coded to a DateField that is used as an itemRenderer.  The key piece I was missing was to use outerDocument to reference the object that would be used as the range:</p>
<pre class="code">
&lt;mx:Script&gt;
&lt;![CDATA[
private var dateRange:Object = new Object();
dateRange["rangeStart"] = startDate;
dateRange["rangeEnd"] = endDate;
]]&gt;
&lt;/mx:Script&gt;

...

&lt;mx:DataGrid&gt;
  &lt;mx:columns&gt;
    &lt;mx:DataGridColumn&gt;
      &lt;mx:itemRenderer&gt;
        &lt;mx:Component&gt;
          &lt;mx:DateField selectableRange="{outerDocument.dateRange}" /&gt;
        &lt;/mx:Component&gt;
      &lt;/mx:itemRenderer&gt;
    &lt;/mx:DataGridColumn&gt;
  &lt;/mx:columns&gt;
&lt;/mx:DataGrid&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/comment-page-1/#comment-2132</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Wed, 21 May 2008 20:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/#comment-2132</guid>
		<description>Is there a way to dynamically assign the rangeStart and rangeEnd?  For instance, I&#039;m using the DateField as the itemEditor in a DataGridColumn, and I need to be able to assign a selectableRange  that isn&#039;t hard coded.</description>
		<content:encoded><![CDATA[<p>Is there a way to dynamically assign the rangeStart and rangeEnd?  For instance, I&#8217;m using the DateField as the itemEditor in a DataGridColumn, and I need to be able to assign a selectableRange  that isn&#8217;t hard coded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: News</title>
		<link>http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/comment-page-1/#comment-2131</link>
		<dc:creator>News</dc:creator>
		<pubDate>Sun, 06 Apr 2008 06:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/#comment-2131</guid>
		<description>peterd - It&#039;s helpfull, thanks</description>
		<content:encoded><![CDATA[<p>peterd &#8211; It&#8217;s helpfull, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ysbostan</title>
		<link>http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/comment-page-1/#comment-2128</link>
		<dc:creator>ysbostan</dc:creator>
		<pubDate>Sat, 16 Feb 2008 05:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/#comment-2128</guid>
		<description>Nice! very thanx</description>
		<content:encoded><![CDATA[<p>Nice! very thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raul Riera</title>
		<link>http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/comment-page-1/#comment-2129</link>
		<dc:creator>Raul Riera</dc:creator>
		<pubDate>Tue, 18 Dec 2007 06:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-control/#comment-2129</guid>
		<description>Can this be set where the second datefield will only accept dates higher than the date selected in the first one? Does it support bindable data in that object you pass to the component?</description>
		<content:encoded><![CDATA[<p>Can this be set where the second datefield will only accept dates higher than the date selected in the first one? Does it support bindable data in that object you pass to the component?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
