<?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: Filtering an MX DataGrid control by date range using Flex</title>
	<atom:link href="http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Samyr MOises</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-9620</link>
		<dc:creator>Samyr MOises</dc:creator>
		<pubDate>Tue, 20 Sep 2011 23:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-9620</guid>
		<description>Hi, Peter!
First of all, thank you so much to share all of this stuff with us!

I have a kind of a simple question, how can I filter this ArrayCollection when the User try to search holydays typping the text that they want?

I was thinking about just to save time, because I&#039;m sending a new Remote Object each time that the user whant that....can you help me? tx!

I&#039;m using Flex 4.5.

See ya!</description>
		<content:encoded><![CDATA[<p>Hi, Peter!<br />
First of all, thank you so much to share all of this stuff with us!</p>
<p>I have a kind of a simple question, how can I filter this ArrayCollection when the User try to search holydays typping the text that they want?</p>
<p>I was thinking about just to save time, because I&#8217;m sending a new Remote Object each time that the user whant that&#8230;.can you help me? tx!</p>
<p>I&#8217;m using Flex 4.5.</p>
<p>See ya!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-9449</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 02 Aug 2011 09:53:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-9449</guid>
		<description>what i want to do is to click on any perticular cell of calenderand a window should be displayed according to the sclected date. how can i do that which control should i use.?</description>
		<content:encoded><![CDATA[<p>what i want to do is to click on any perticular cell of calenderand a window should be displayed according to the sclected date. how can i do that which control should i use.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naidu</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-9318</link>
		<dc:creator>naidu</dc:creator>
		<pubDate>Sun, 19 Jun 2011 19:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-9318</guid>
		<description>I am also working on the same issue. If you get it resolved , can you pls post it here.</description>
		<content:encoded><![CDATA[<p>I am also working on the same issue. If you get it resolved , can you pls post it here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: san</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-9103</link>
		<dc:creator>san</dc:creator>
		<pubDate>Sun, 03 Apr 2011 22:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-9103</guid>
		<description>Thanks a lot Peter for this example. 
I would appreciate if anyone in this forum can answer few questions for me.
1)Is there any way to set the end date to current date(present date). I want users to change the start date but by default always set the end date to current date.

Looking forward to hear from you.

Thanks
San</description>
		<content:encoded><![CDATA[<p>Thanks a lot Peter for this example.<br />
I would appreciate if anyone in this forum can answer few questions for me.<br />
1)Is there any way to set the end date to current date(present date). I want users to change the start date but by default always set the end date to current date.</p>
<p>Looking forward to hear from you.</p>
<p>Thanks<br />
San</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naidu</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-8891</link>
		<dc:creator>naidu</dc:creator>
		<pubDate>Mon, 24 Jan 2011 19:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-8891</guid>
		<description>how can we include the same date filter in column header renderer?</description>
		<content:encoded><![CDATA[<p>how can we include the same date filter in column header renderer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mothman</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-8271</link>
		<dc:creator>Mothman</dc:creator>
		<pubDate>Sat, 28 Aug 2010 08:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-8271</guid>
		<description>So beautiful, i looked for this so long..</description>
		<content:encoded><![CDATA[<p>So beautiful, i looked for this so long..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: splatterkep</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-8080</link>
		<dc:creator>splatterkep</dc:creator>
		<pubDate>Tue, 06 Jul 2010 23:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-8080</guid>
		<description>Hello,

I realize this is an older thread, but wonder if someone can please point me in the right direction.

I am trying to use the code on this page to populate a Flex column chart, so that a user can see a default date range on a chart when the page loads, then use date choosers for start and end dates.

I have the chart working via XML/E4X using HTTPService. I&#039;ve tried adapting the datagrid example here but am not having luck yet.

Thanks for any and all thoughts,

sPlat</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I realize this is an older thread, but wonder if someone can please point me in the right direction.</p>
<p>I am trying to use the code on this page to populate a Flex column chart, so that a user can see a default date range on a chart when the page loads, then use date choosers for start and end dates.</p>
<p>I have the chart working via XML/E4X using HTTPService. I&#8217;ve tried adapting the datagrid example here but am not having luck yet.</p>
<p>Thanks for any and all thoughts,</p>
<p>sPlat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-7511</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Sat, 17 Apr 2010 01:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-7511</guid>
		<description>@Adam S,

You could try adding something like the following:
&lt;pre lang=&quot;mxml&quot;&gt;
protected function arrColl_filterFunc(item:Object):Boolean {
    var cDate:Number = Date.parse(item.holidayDate);
    
    if (!cDate) {
        return true;
    }
    // ...
&lt;/pre&gt;

Now if you have dates that cannot be parsed (or there wasn&#039;t a &lt;code&gt;holidayDate&lt;/code&gt; in the fx:Object, the item will still display and not be filtered out. You may also need to tweak your date formatter function to return an empty string if the date cannot be parsed/formatted, or else you may get something funny like &quot;Invalid date&quot; in the DataGrid.

Peter</description>
		<content:encoded><![CDATA[<p>@Adam S,</p>
<p>You could try adding something like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;">protected function arrColl_filterFunc(item:Object):Boolean {
    var cDate:Number = Date.parse(item.holidayDate);
&nbsp;
    if (!cDate) {
        return true;
    }
    // ...</pre></div></div>

<p>Now if you have dates that cannot be parsed (or there wasn&#8217;t a <code>holidayDate</code> in the fx:Object, the item will still display and not be filtered out. You may also need to tweak your date formatter function to return an empty string if the date cannot be parsed/formatted, or else you may get something funny like &#8220;Invalid date&#8221; in the DataGrid.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam S</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-7510</link>
		<dc:creator>Adam S</dc:creator>
		<pubDate>Fri, 16 Apr 2010 19:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-7510</guid>
		<description>Your site is such a big help!!!  I&#039;m working on my first major flex app and I&#039;ve found your site to be a sort of Flex Bible!

Anyways I&#039;ve got a similar filter that I&#039;m working on in my app, but I&#039;m having a small problem. I&#039;ve got some items that don&#039;t contain dates (so they don&#039;t appear) and I was wondering how I c0uld modify the code so that items not containing a date are not filtered out?

thanks!</description>
		<content:encoded><![CDATA[<p>Your site is such a big help!!!  I&#8217;m working on my first major flex app and I&#8217;ve found your site to be a sort of Flex Bible!</p>
<p>Anyways I&#8217;ve got a similar filter that I&#8217;m working on in my app, but I&#8217;m having a small problem. I&#8217;ve got some items that don&#8217;t contain dates (so they don&#8217;t appear) and I was wondering how I c0uld modify the code so that items not containing a date are not filtered out?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/comment-page-1/#comment-7341</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 24 Mar 2010 07:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366#comment-7341</guid>
		<description>@sabeerdeen,

See http://blog.flexexamples.com/2007/08/12/sorting-date-columns-in-a-datagrid/

Peter</description>
		<content:encoded><![CDATA[<p>@sabeerdeen,</p>
<p>See <a href="http://blog.flexexamples.com/2007/08/12/sorting-date-columns-in-a-datagrid/" rel="nofollow">http://blog.flexexamples.com/2007/08/12/sorting-date-columns-in-a-datagrid/</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

