<?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 a specific number of columns in a TileList control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Mon, 13 Feb 2012 01:38:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shridevi</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-6534</link>
		<dc:creator>shridevi</dc:creator>
		<pubDate>Mon, 07 Dec 2009 09:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-6534</guid>
		<description>I have a component very close to the above example. I&#039;m trying to use scrollToIndex with this.. It works with my stand alone example.
But in my application scrollToIndex is not working. I dont see any difference between stand alone code and application.</description>
		<content:encoded><![CDATA[<p>I have a component very close to the above example. I&#8217;m trying to use scrollToIndex with this.. It works with my stand alone example.<br />
But in my application scrollToIndex is not working. I dont see any difference between stand alone code and application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nirud</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-5792</link>
		<dc:creator>nirud</dc:creator>
		<pubDate>Wed, 16 Sep 2009 14:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-5792</guid>
		<description>ok I got it.

I had item renderer inside tile list, so I added VBox up to image (or other element) and there it&#039;s possible to add gap.</description>
		<content:encoded><![CDATA[<p>ok I got it.</p>
<p>I had item renderer inside tile list, so I added VBox up to image (or other element) and there it&#8217;s possible to add gap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nirud</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-5790</link>
		<dc:creator>nirud</dc:creator>
		<pubDate>Wed, 16 Sep 2009 14:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-5790</guid>
		<description>Hi,

I have the same question like chandra shekar. Is that possible to add columnscell gap in some way?

I have idea about blank element - but there&#039;ll be problem with &quot;selectable&quot; of that kind of element...

Maybe is some way without stupid, irracional combination?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have the same question like chandra shekar. Is that possible to add columnscell gap in some way?</p>
<p>I have idea about blank element &#8211; but there&#8217;ll be problem with &#8220;selectable&#8221; of that kind of element&#8230;</p>
<p>Maybe is some way without stupid, irracional combination?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohit Bhatia</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-5525</link>
		<dc:creator>Rohit Bhatia</dc:creator>
		<pubDate>Tue, 01 Sep 2009 11:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-5525</guid>
		<description>2) smooth scrolling

Yes I did</description>
		<content:encoded><![CDATA[<p>2) smooth scrolling</p>
<p>Yes I did</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chandra shekar</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-4864</link>
		<dc:creator>chandra shekar</dc:creator>
		<pubDate>Fri, 31 Jul 2009 09:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-4864</guid>
		<description>hi  Peter deHaan 

                 i have a tilelist with four columns and variable rows. 
                but now i need a gap between column cells and at the same time i need a smooth scrolling for tilelist
               when i have more no of items.for scrolling now i am using with variable row height. for my tilelist 
               two bars are there one is upbar image above the tilelist and downbar below the tilelist. when we drag item 
               near to the bars the tilelist wants to start action of scrolling smoothly
               these are twoissues  i need ;
             1) columncells gap
            2) smooth scrolling

thanks</description>
		<content:encoded><![CDATA[<p>hi  Peter deHaan </p>
<p>                 i have a tilelist with four columns and variable rows.<br />
                but now i need a gap between column cells and at the same time i need a smooth scrolling for tilelist<br />
               when i have more no of items.for scrolling now i am using with variable row height. for my tilelist<br />
               two bars are there one is upbar image above the tilelist and downbar below the tilelist. when we drag item<br />
               near to the bars the tilelist wants to start action of scrolling smoothly<br />
               these are twoissues  i need ;<br />
             1) columncells gap<br />
            2) smooth scrolling</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-3641</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 03 Jun 2009 07:27:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-3641</guid>
		<description>Shah,

I believe you can set the &lt;code&gt;horizontalScrollPolicy&lt;/code&gt; and/or &lt;code&gt;verticalScrollPolicy&lt;/code&gt; properties to &quot;off&quot; and then just set the &lt;code&gt;horizontalScrollPosition&lt;/code&gt; property to programmatically scroll the content. Something like this should do the trick (although you&#039;ll have to tweak the code if you want it to scroll vertically instead of horizontally):

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;absolute&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function scrollPrev():void {
                var value:Number = Math.max(tileList.horizontalScrollPosition-1, 0);
                tileList.horizontalScrollPosition = value;
            }

            private function scrollNext():void {
                var value:Number = Math.min(tileList.horizontalScrollPosition+1, tileList.maxHorizontalScrollPosition);
                tileList.horizontalScrollPosition = value;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:HBox horizontalGap=&quot;0&quot;
            horizontalCenter=&quot;0&quot;
            verticalCenter=&quot;0&quot;&gt;
        &lt;mx:Button label=&quot;Prev&quot;
                click=&quot;scrollPrev();&quot;
                height=&quot;100%&quot;
                cornerRadius=&quot;0&quot; /&gt;
        &lt;mx:TileList id=&quot;tileList&quot;
                dataProvider=&quot;[One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten]&quot;
                direction=&quot;vertical&quot;
                columnCount=&quot;3&quot;
                rowCount=&quot;2&quot;
                columnWidth=&quot;100&quot;
                rowHeight=&quot;80&quot;
                horizontalScrollPolicy=&quot;off&quot;
                verticalScrollPolicy=&quot;off&quot;/&gt;
        &lt;mx:Button label=&quot;Next&quot;
                click=&quot;scrollNext();&quot;
                height=&quot;100%&quot;
                cornerRadius=&quot;0&quot; /&gt;
    &lt;/mx:HBox&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Shah,</p>
<p>I believe you can set the <code>horizontalScrollPolicy</code> and/or <code>verticalScrollPolicy</code> properties to &#8220;off&#8221; and then just set the <code>horizontalScrollPosition</code> property to programmatically scroll the content. Something like this should do the trick (although you&#8217;ll have to tweak the code if you want it to scroll vertically instead of horizontally):</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;absolute&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            private function scrollPrev():void {</span>
<span style="color: #339933;">                var value:Number = Math.max(tileList.horizontalScrollPosition-1, 0);</span>
<span style="color: #339933;">                tileList.horizontalScrollPosition = value;</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            private function scrollNext():void {</span>
<span style="color: #339933;">                var value:Number = Math.min(tileList.horizontalScrollPosition+1, tileList.maxHorizontalScrollPosition);</span>
<span style="color: #339933;">                tileList.horizontalScrollPosition = value;</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:HBox</span> horizontalGap=<span style="color: #ff0000;">&quot;0&quot;</span></span>
<span style="color: #000000;">            horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span></span>
<span style="color: #000000;">            verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Prev&quot;</span></span>
<span style="color: #000000;">                click=<span style="color: #ff0000;">&quot;scrollPrev();&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                cornerRadius=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TileList</span> id=<span style="color: #ff0000;">&quot;tileList&quot;</span></span>
<span style="color: #000000;">                dataProvider=<span style="color: #ff0000;">&quot;[One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten]&quot;</span></span>
<span style="color: #000000;">                direction=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">                columnCount=<span style="color: #ff0000;">&quot;3&quot;</span></span>
<span style="color: #000000;">                rowCount=<span style="color: #ff0000;">&quot;2&quot;</span></span>
<span style="color: #000000;">                columnWidth=<span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">                rowHeight=<span style="color: #ff0000;">&quot;80&quot;</span></span>
<span style="color: #000000;">                horizontalScrollPolicy=<span style="color: #ff0000;">&quot;off&quot;</span></span>
<span style="color: #000000;">                verticalScrollPolicy=<span style="color: #ff0000;">&quot;off&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Next&quot;</span></span>
<span style="color: #000000;">                click=<span style="color: #ff0000;">&quot;scrollNext();&quot;</span></span>
<span style="color: #000000;">                height=<span style="color: #ff0000;">&quot;100%&quot;</span></span>
<span style="color: #000000;">                cornerRadius=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:HBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yogini</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-3642</link>
		<dc:creator>Yogini</dc:creator>
		<pubDate>Tue, 02 Jun 2009 09:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-3642</guid>
		<description>ohh it worked...
Thanks :)
it was really helpful.
-Yogini.</description>
		<content:encoded><![CDATA[<p>ohh it worked&#8230;<br />
Thanks :)<br />
it was really helpful.<br />
-Yogini.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shah</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-3643</link>
		<dc:creator>Shah</dc:creator>
		<pubDate>Tue, 02 Jun 2009 04:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-3643</guid>
		<description>Hello Peter,
Is it possible to have &quot;previous&quot; and &quot;next&quot; button control the content in Tilelist control? I don&#039;t want to show the scroll bar, but there are more items in the list that I can navigate.

Thanks for your help,
SHAH</description>
		<content:encoded><![CDATA[<p>Hello Peter,<br />
Is it possible to have &#8220;previous&#8221; and &#8220;next&#8221; button control the content in Tilelist control? I don&#8217;t want to show the scroll bar, but there are more items in the list that I can navigate.</p>
<p>Thanks for your help,<br />
SHAH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-3639</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Mon, 01 Jun 2009 15:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-3639</guid>
		<description>Yogini,

Instead of specifying the &lt;code&gt;columnWidth&lt;/code&gt; property, set the &lt;code&gt;width&lt;/code&gt; property on the TileList object:
&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application name=&quot;TileList_columnCount_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:ArrayCollection id=&quot;arrColl&quot;&gt;
        &lt;mx:source&gt;
            &lt;mx:Array&gt;
                &lt;mx:Object label=&quot;One&quot; /&gt;
                &lt;mx:Object label=&quot;Two&quot; /&gt;
                &lt;mx:Object label=&quot;Three&quot; /&gt;
                &lt;mx:Object label=&quot;Four&quot; /&gt;
                &lt;mx:Object label=&quot;Five&quot; /&gt;
                &lt;mx:Object label=&quot;Six&quot; /&gt;
                &lt;mx:Object label=&quot;Seven&quot; /&gt;
                &lt;mx:Object label=&quot;Eight&quot; /&gt;
                &lt;mx:Object label=&quot;Nine&quot; /&gt;
                &lt;mx:Object label=&quot;Ten&quot; /&gt;
            &lt;/mx:Array&gt;
        &lt;/mx:source&gt;
    &lt;/mx:ArrayCollection&gt;

    &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;mx:Form styleName=&quot;plain&quot;&gt;
            &lt;mx:FormItem label=&quot;columnCount:&quot;&gt;
                &lt;mx:HSlider id=&quot;slider&quot;
                        minimum=&quot;1&quot;
                        maximum=&quot;5&quot;
                        value=&quot;5&quot;
                        snapInterval=&quot;1&quot;
                        tickInterval=&quot;1&quot;
                        liveDragging=&quot;true&quot; /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:TileList id=&quot;tileList&quot;
            dataProvider=&quot;{arrColl}&quot;
            columnCount=&quot;{slider.value}&quot;
            &lt;strong style=&quot;color:red;&quot;&gt;width=&quot;600&quot;&lt;/strong&gt;
            rowCount=&quot;2&quot;
            rowHeight=&quot;100&quot;
            verticalScrollPolicy=&quot;on&quot; /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Yogini,</p>
<p>Instead of specifying the <code>columnWidth</code> property, set the <code>width</code> property on the TileList object:</p>
<pre class="code">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application name=&quot;TileList_columnCount_test&quot;
        xmlns:mx=&quot;<a href="http://www.adobe.com/2006/mxml&#038;quot" rel="nofollow">http://www.adobe.com/2006/mxml&#038;quot</a>;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:ArrayCollection id=&quot;arrColl&quot;&gt;
        &lt;mx:source&gt;
            &lt;mx:Array&gt;
                &lt;mx:Object label=&quot;One&quot; /&gt;
                &lt;mx:Object label=&quot;Two&quot; /&gt;
                &lt;mx:Object label=&quot;Three&quot; /&gt;
                &lt;mx:Object label=&quot;Four&quot; /&gt;
                &lt;mx:Object label=&quot;Five&quot; /&gt;
                &lt;mx:Object label=&quot;Six&quot; /&gt;
                &lt;mx:Object label=&quot;Seven&quot; /&gt;
                &lt;mx:Object label=&quot;Eight&quot; /&gt;
                &lt;mx:Object label=&quot;Nine&quot; /&gt;
                &lt;mx:Object label=&quot;Ten&quot; /&gt;
            &lt;/mx:Array&gt;
        &lt;/mx:source&gt;
    &lt;/mx:ArrayCollection&gt;

    &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
        &lt;mx:Form styleName=&quot;plain&quot;&gt;
            &lt;mx:FormItem label=&quot;columnCount:&quot;&gt;
                &lt;mx:HSlider id=&quot;slider&quot;
                        minimum=&quot;1&quot;
                        maximum=&quot;5&quot;
                        value=&quot;5&quot;
                        snapInterval=&quot;1&quot;
                        tickInterval=&quot;1&quot;
                        liveDragging=&quot;true&quot; /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:TileList id=&quot;tileList&quot;
            dataProvider=&quot;{arrColl}&quot;
            columnCount=&quot;{slider.value}&quot;
            <strong style="color:red;">width=&quot;600&quot;</strong>
            rowCount=&quot;2&quot;
            rowHeight=&quot;100&quot;
            verticalScrollPolicy=&quot;on&quot; /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yogini</title>
		<link>http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/comment-page-1/#comment-3640</link>
		<dc:creator>Yogini</dc:creator>
		<pubDate>Mon, 01 Jun 2009 07:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/07/setting-a-specific-number-of-columns-in-a-tilelist-control-in-flex/#comment-3640</guid>
		<description>Hi, thanks for this code.
I want to change column count without changing width of the list.
I mean tilelist&#039;s width should remain same, but number of columns should change dynamically.
is it possible?</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this code.<br />
I want to change column count without changing width of the list.<br />
I mean tilelist&#8217;s width should remain same, but number of columns should change dynamically.<br />
is it possible?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

