<?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/"
	>

<channel>
	<title>FlexOut &#187; filter</title>
	<atom:link href="http://flex.exposedout.net/tag/filter/feed/" rel="self" type="application/rss+xml" />
	<link>http://flex.exposedout.net</link>
	<description>i am an itemrendrer in the making!</description>
	<lastBuildDate>Fri, 11 Jun 2010 15:54:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Filter datagrid using a hslider</title>
		<link>http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/</link>
		<comments>http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 13:53:08 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[hslider]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=189</guid>
		<description><![CDATA[Here is an example of Data grid filtered using a H slider  with 2 thumbs to select the range of date for which to  filter the data grid. The combo box is used to select the specific column on which the filter has to be applied to. The check box is used to either enable [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Here is an example of Data grid filtered using a H slider  with 2 thumbs to select the range of date for which to  filter the data grid. The combo box is used to select the specific column on which the filter has to be applied to. The check box is used to either enable or disable the filter functionality.</p>
<p><strong>Screenshot</strong>:</p>
<p><img class="aligncenter size-full wp-image-190" title="testfilterdg" src="http://guavus.files.wordpress.com/2009/01/testfilterdg.jpg" alt="testfilterdg" width="480" height="239" /></p>
<p>For <strong>source </strong>please read the complete article<span id="more-189"></span></p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
layout=&#8221;vertical&#8221;<br />
height=&#8221;300&#8243; width=&#8221;600&#8243;<br />
backgroundColor=&#8221;white&#8221;<br />
creationComplete=&#8221;init();&#8221;&gt;</p>
<p>&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/confused.gif" style="border:none;background:none;vertical-align:-25%;" alt="confused" />cript&gt;<br />
&lt;![CDATA[<br />
import mx.events.SliderEvent;</p>
<p>private function init():void {<br />
if (checkBox.selected) {<br />
arrColl.filterFunction = sliderFilterFunc;<br />
arrColl.refresh();<br />
}<br />
}<br />
private var comb : Array = [{label:"value1",data:0},<br />
{label:"value2",data:1},<br />
{label:"value3",data:2}];</p>
<p>private function checkBox_change(evt:Event):void {<br />
if (checkBox.selected) {<br />
arrColl.filterFunction = sliderFilterFunc;<br />
} else {<br />
arrColl.filterFunction = null;<br />
}<br />
arrColl.refresh();<br />
}</p>
<p>private function slider_change(evt<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/confused.gif" style="border:none;background:none;vertical-align:-25%;" alt="confused" />liderEvent):void {<br />
arrColl.refresh();<br />
}</p>
<p>private function sliderFilterFunc(item<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject)<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/nerd.gif" style="border:none;background:none;vertical-align:-25%;" alt="nerd" />oolean {<br />
var bool<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/nerd.gif" style="border:none;background:none;vertical-align:-25%;" alt="nerd" />oolean;<br />
switch(vx.selectedItem.data){<br />
case 0:<br />
bool = checkData(item.value1);<br />
break;<br />
case 1:<br />
bool = checkData(item.value2);<br />
break;<br />
case 2:<br />
bool = checkData(item.value3);<br />
break;<br />
}<br />
return bool;<br />
}</p>
<p>private function checkData(num:Number)<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/nerd.gif" style="border:none;background:none;vertical-align:-25%;" alt="nerd" />oolean{<br />
var minSlider:Number = slider.values[0];<br />
var maxSlider:Number = slider.values[1];<br />
if ((num &gt;= minSlider)&amp;&amp;(num &lt;= maxSlider))<br />
return true;<br />
else<br />
return false;</p>
<p>}</p>
<p>]]&gt;<br />
&lt;/mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/confused.gif" style="border:none;background:none;vertical-align:-25%;" alt="confused" />cript&gt;</p>
<p>&lt;mx:ArrayCollection id=&#8221;arrColl&#8221;&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/confused.gif" style="border:none;background:none;vertical-align:-25%;" alt="confused" />ource&gt;<br />
&lt;mx:Array&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;One&#8221; value1=&#8221;100&#8243; value2=&#8221;100&#8243; value3=&#8221;60&#8243;/&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;Two&#8221; value1=&#8221;2&#8243; value2=&#8221;90&#8243; value3=&#8221;600&#8243;/&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;Three&#8221; value1=&#8221;300&#8243; value2=&#8221;40&#8243; value3=&#8221;200&#8243;/&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;Four&#8221; value1=&#8221;40&#8243; value2=&#8221;100&#8243; value3=&#8221;100&#8243;/&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;Five&#8221; value1=&#8221;500&#8243; value2=&#8221;200&#8243; value3=&#8221;400&#8243;/&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;Six&#8221; value1=&#8221;60&#8243; value2=&#8221;300&#8243; value3=&#8221;80&#8243;/&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;Seven&#8221; value1=&#8221;700&#8243; value2=&#8221;500&#8243; value3=&#8221;30&#8243;/&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;Eight&#8221; value1=&#8221;800&#8243; value2=&#8221;50&#8243; value3=&#8221;50&#8243;/&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;Nine&#8221; value1=&#8221;90&#8243; value2=&#8221;90&#8243; value3=&#8221;50&#8243;/&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/surprise.gif" style="border:none;background:none;vertical-align:-25%;" alt="surprise" />bject label=&#8221;Ten&#8221; value1=&#8221;100&#8243; value2=&#8221;10&#8243; value3=&#8221;100&#8243;/&gt;<br />
&lt;/mx:Array&gt;<br />
&lt;/mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/confused.gif" style="border:none;background:none;vertical-align:-25%;" alt="confused" />ource&gt;<br />
&lt;/mx:ArrayCollection&gt;</p>
<p>&lt;mx:ApplicationControlBar dock=&#8221;true&#8221;&gt;<br />
&lt;mx:HBox width=&#8221;100%&#8221;&gt;<br />
&lt;mx:Label text=&#8221;filter&#8221; /&gt;<br />
&lt;mx:CheckBox id=&#8221;checkBox&#8221; selected=&#8221;true&#8221; change=&#8221;checkBox_change(event);&#8221; /&gt;<br />
&lt;mx:ComboBox id=&#8221;vx&#8221; dataProvider=&#8221;{comb}&#8221;/&gt;<br />
&lt;mx:Label text=&#8221;Values&#8221; /&gt;<br />
&lt;mx:HSlider id=&#8221;slider&#8221;<br />
minimum=&#8221;0&#8243; maximum=&#8221;1000&#8243;<br />
values=&#8221;[0,1000]&#8221; labels=&#8221;[0,500,1000]&#8221;<br />
thumbCount=&#8221;2&#8243; showTrackHighlight=&#8221;true&#8221;<br />
snapInterval=&#8221;1&#8243; tickInterval=&#8221;100&#8243;<br />
liveDragging=&#8221;true&#8221; change=&#8221;slider_change(event);&#8221; /&gt;<br />
&lt;/mx:HBox&gt;<br />
&lt;/mx:ApplicationControlBar&gt;</p>
<p>&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/tongue.gif" style="border:none;background:none;vertical-align:-25%;" alt="tongue" />anel status=&#8221;{arrColl.length}/{arrColl.source.length} item(s)&#8221;&gt;<br />
&lt;mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/big_grin.gif" style="border:none;background:none;vertical-align:-25%;" alt="big grin" />ataGrid id=&#8221;dataGrid&#8221; dataProvider=&#8221;{arrColl}&#8221; verticalScrollPolicy=&#8221;on&#8221; /&gt;<br />
&lt;/mx<img src="http://flex.exposedout.net/wp-content/plugins/yahoo-messenger-emoticons/emoticons/tongue.gif" style="border:none;background:none;vertical-align:-25%;" alt="tongue" />anel&gt;</p>
<p>&lt;/mx:Application&gt;</p></blockquote>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F&amp;title=Filter%20datagrid%20using%20a%20hslider" title="DZone"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F&amp;title=Filter%20datagrid%20using%20a%20hslider&amp;bodytext=Here%20is%20an%20example%20of%20Data%20grid%20filtered%20using%20a%20H%20slider%C2%A0%20with%202%20thumbs%20to%20select%20the%20range%20of%20date%20for%20which%20to%C2%A0%20filter%20the%20data%20grid.%20The%20combo%20box%20is%20used%20to%20select%20the%20specific%20column%20on%20which%20the%20filter%20has%20to%20be%20applied%20to.%20The%20check%20box%20is%20" title="Digg"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Filter%20datagrid%20using%20a%20hslider%20-%20http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F" title="Twitter"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F&amp;title=Filter%20datagrid%20using%20a%20hslider&amp;annotation=Here%20is%20an%20example%20of%20Data%20grid%20filtered%20using%20a%20H%20slider%C2%A0%20with%202%20thumbs%20to%20select%20the%20range%20of%20date%20for%20which%20to%C2%A0%20filter%20the%20data%20grid.%20The%20combo%20box%20is%20used%20to%20select%20the%20specific%20column%20on%20which%20the%20filter%20has%20to%20be%20applied%20to.%20The%20check%20box%20is%20" title="Google Bookmarks"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F" title="Technorati"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F&amp;title=Filter%20datagrid%20using%20a%20hslider" title="StumbleUpon"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F&amp;t=Filter%20datagrid%20using%20a%20hslider" title="MySpace"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F" title="Sphinn"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F&amp;title=Filter%20datagrid%20using%20a%20hslider&amp;notes=Here%20is%20an%20example%20of%20Data%20grid%20filtered%20using%20a%20H%20slider%C2%A0%20with%202%20thumbs%20to%20select%20the%20range%20of%20date%20for%20which%20to%C2%A0%20filter%20the%20data%20grid.%20The%20combo%20box%20is%20used%20to%20select%20the%20specific%20column%20on%20which%20the%20filter%20has%20to%20be%20applied%20to.%20The%20check%20box%20is%20" title="del.icio.us"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F&amp;t=Filter%20datagrid%20using%20a%20hslider" title="Facebook"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F&amp;title=Filter%20datagrid%20using%20a%20hslider" title="Reddit"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fflex.exposedout.net%2F2009%2F01%2F22%2Ffilter-datagrid-using-slider%2F&amp;title=Filter%20datagrid%20using%20a%20hslider" title="Mixx"><img src="http://flex.exposedout.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
