<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.11.81 (http://www.squarespace.com/) on Tue, 29 May 2012 00:04:13 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>mtelligent</title><link>http://www.mtelligent.com/journal/</link><description>tales from the .Net side</description><lastBuildDate>Wed, 16 May 2012 03:26:15 +0000</lastBuildDate><copyright>David San Filippo 2006</copyright><language>en-US</language><generator>Squarespace Site Server v5.11.81 (http://www.squarespace.com/)</generator><item><title>Web Development Grew Up Without Me</title><category>Wedding Crowd</category><dc:creator>David San Filippo</dc:creator><pubDate>Wed, 16 May 2012 03:01:31 +0000</pubDate><link>http://www.mtelligent.com/journal/2012/5/15/web-development-grew-up-without-me.html</link><guid isPermaLink="false">56912:489404:16284441</guid><description><![CDATA[<p>As I get deeper and deeper into developing wedding crowd, I feel more and more like I've been asleep for the last 5 years when it comes to web app development.</p>
<p>I grew up on classic asp and HTML 4.0 in the good old days of Netscape Navigator 4.0 and IE 4.0. I remember how bad cross browser "everything" was. I recall irritating layout bugs with vanilla HTML tables that occurred if you didn't put your line breaks where browsers wanted them. I remember playing with AJAX before it was called AJAX (with the ie Active X object) and when Netscape's Layers were depreciated for DHTML.</p>
<p>Early on in my career, I moved on to .Net and got deep into Web Forms development. There was a time I could confidently say I've done most everything with Web Forms and had a firm understanding of the entire platform. I remember picking up a book on rails when it first became hot, way before ASP.Net MVC came out and thinking it was interesting, but not something that was worth breaking out of my web form shell for.&nbsp;</p>
<p>Since then I worked deeply with Windows Forms and Desktop Development, BizTalk development and even SharePoint development among other technologies. I hadn't really kept up with all the advancement in the web development craft these past few years. When I started working on HOSY (my failed attempt at a social qa site), I was really impressed with the speed I could build applications with MVC and only scratched the surface with what could be done with jQuery.</p>
<p>A few weeks into development of Wedding Crowd, I really need to reflect on how much things have changed and how much better and cleaner development feels. I'm using knockout js with jquery and jquery ui to create an extremely rich UI and it doesn't feel overly complex. Templating is dirt simple and the tight binding between DOM and JavaScript model using observables really makes everything feel like the way it was meant to be done.</p>
<p>I've found excellent jQuery plug ins for skinning file upload controls, creating scrollable divs and creating light boxes, all open source with great documentation.</p>
<p>I'm also starting to dig into SignalR, a client server messaging framework which also seems to abstract most of the complexities needed for creating extremely rich messaging in web applications.</p>
<p>I really feel like I building on top of the shoulders of giants.</p>
<p>I remember several years ago remarking that I hated JavaScript. I feel like I've come full circle and my opinion has completely reversed. I not only don't hate it, I really enjoy it.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-16284441.xml</wfw:commentRss></item><item><title>Coming Soon: WeddingCrowd.com</title><dc:creator>David San Filippo</dc:creator><pubDate>Wed, 07 Mar 2012 03:55:50 +0000</pubDate><link>http://www.mtelligent.com/journal/2012/3/6/coming-soon-weddingcrowdcom.html</link><guid isPermaLink="false">56912:489404:15329868</guid><description><![CDATA[<p>Thought it was time that I announce my next project, currently under development. <a class="offsite-link-inline" href="http://www.weddingcrowd.com/" target="_blank">Wedding Crowd</a> is a social wedding planning site that is going to change the way brides choose their vendors.</p>
<p>I originally approached the development of this idea from the social side. I didn't think facebook was a good platform for sharing details about your wedding as you were planning it.&nbsp; I talked to a number of past and future brides who confirmed my assumption. A lot of brides get help from their bridesmaid, but most of that is coordinated via text message and email. So I set out to build a site where brides can communicate with their bridal parties and anyone else they wanted to include in the discussion.</p>
<p>As I began to research the market, I kept reading about pinterest and how many women were using it to organize ideas for their weddings. And the more I thought about it, the more I thought that would be a perfect way to let vendors know exactly what you want for your wedding.&nbsp;</p>
<p>So my basic concept is to build a site where the bride and anyone else she wants to invite can privately discuss, rate and share ideas and pictures. The bride could then organize different boards that the images were classified into. For example she could have one board with all the pictures of flowers, one for dresses, another for hair and makeup, for each of the aspects of her wedding she would need to a vendor for.</p>
<p>Once she organized the board how she wants, she could then publish the board which makes the details of what she wants viewable by local wedding vendors that also subscribe to the site.&nbsp; These vendors could respond with a proposal that includes comments that describe how they could help her bring her ideas to fruition and even include pictures from their gallery that demonstrate this.</p>
<p>She could even share a public url for the board with local vendors of her choosing who would be able to respond as well without having to subscribe to the site.</p>
<p>That's the 1000 foot view of the concept we're building. I'm working with my sister on this one, who is getting married in the fall. She's already <a class="offsite-link-inline" href="http://weddingcrowd.wordpress.com/" target="_blank">blogging </a>and <a class="offsite-link-inline" href="https://twitter.com/#!/WeddingCrowd" target="_blank">tweeting</a>. And I put up a landing page at <a class="offsite-link-inline" href="http://www.weddingcrowd.com" target="_blank">WeddingCrowd.com</a> where you can see our shiny new logo and sign up to be notified when we launch.</p>
<p>I'll post more on the technical details later, but implementation wise, we'll be building it using MVC 3, Azure, SQL Azure, Table and Queue Storage, Facebook API among other technologies.</p>
<p>If you're recently married, planning your wedding or a wedding vendor, I'd love to <a href="http://www.mtelligent.com/contact-me/">hear from you</a>.&nbsp;</p>]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-15329868.xml</wfw:commentRss></item><item><title>SnipItPro.com down</title><category>Snip-It Pro</category><dc:creator>David San Filippo</dc:creator><pubDate>Sat, 03 Mar 2012 14:21:36 +0000</pubDate><link>http://www.mtelligent.com/journal/2012/3/3/snipitprocom-down.html</link><guid isPermaLink="false">56912:489404:15279733</guid><description><![CDATA[<p>The server Snip-It Pro was on crashed and my host is having issues. They say they're restoring sites from backups, and since I haven't really changed anything on the site in a long while, I'm hopefull there will be no data loss.</p>
<p>Will update everyone once its back up.</p>]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-15279733.xml</wfw:commentRss></item><item><title>Moving on to the next idea</title><dc:creator>David San Filippo</dc:creator><pubDate>Wed, 15 Feb 2012 22:13:01 +0000</pubDate><link>http://www.mtelligent.com/journal/2012/2/15/moving-on-to-the-next-idea.html</link><guid isPermaLink="false">56912:489404:15052482</guid><description><![CDATA[<p>I've decided to not pursue the question themed social sites. I'll eventually take them down, as I don't really see the long term viability of the idea compared to some of the other ideas I've been incubating.</p>
<p>It was a nice exercise of building something using Azure using MVC, jquery and some of the cloud storage options, so it wasn't completely worthless.</p>
<p>Anyway, I am working on something and hope to post details in the weeks to come.</p>
<p>In the mean while, check out <a href="http://www.snipitpro.com">Snip-It Pro</a>, a product I built to make managing and using snippets easy as pie.&nbsp;</p>
<p>&nbsp;</p>]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-15052482.xml</wfw:commentRss></item><item><title>Developing the idea</title><category>OnceFound</category><dc:creator>David San Filippo</dc:creator><pubDate>Thu, 12 Jan 2012 02:32:34 +0000</pubDate><link>http://www.mtelligent.com/journal/2012/1/11/developing-the-idea.html</link><guid isPermaLink="false">56912:489404:14544750</guid><description><![CDATA[<p>I've been consistently working on the site since my last post, though none of the changes have gone live yet and probably wont for a week or so.</p>
<p>I started with the best of intentions. Add caching to the site using Windows Azure Appfabric Caching. As I started to gut the pages to add in caching, I lamented that I didn't spend much of the initial flurry of activity on writing unit tests, which would have made me feel more comfortable about the changes I was making.</p>
<p>So I spent a few days writing unit tests and refactoring my controllers to be more testable, removing dependencies on the http context and refactoring for a bit more structured and elegant code.</p>
<p>Once that was in place I implemented the caching, which was pretty straightforward except for one thing. Since the configuration section used was a collection of datacacheclients, I thought it would be neat to get windows server appfabric caching and swap between them depending on whether I was doing a dev build or a release build. The cache client had the same name and were in an assembly of the same name, so I thought it would be straight forward. But it turns out the Azure assembly is version 101.0.0.0 and the Windows server is version 1.0.0.0 and are completely incompatible.</p>
<p>When I gave up, I had to deal a slew of errors, because apparently azure only likes it if you name your datacacheclient "default".</p>
<p>Anyway, once I got the configuration squared away, implementing caching was pretty straightforward.</p>
<p>At the same time, I starting looking for help with the design of the site. I pursued a couple of leads, but couldn't find anyone I was comfortable with, so I decided to try to do it myself. (famous last words...)</p>
<p>So I think I have a nicer layout, which I plan on rolling out, but as I thought about usability and my original vision of "once found" as a research tool, I started working on major changes to the site.</p>
<p>First decision I made was for no more polls. I'm ripping them out. Most topics they didn't make sense, and the few people I got to try the site were entering answers that should have been comments.&nbsp;Comments will be prominent, with links in the sidebar.&nbsp;</p>
<p>I want to turn this into a research tool. When this is ready, I'll launch OnceFound, which will allow for research any topic, with each question site a more specific version of the site. With this in mind, here is how I picture people using it.</p>
<p>&nbsp;</p>
<ul>
<li>For each topic, users will be able to drag and drop the links and comments in any order they please. The relative rankings each users give will calculate a "score" which could then be used to guess where links appear in the shared rankings. As new links are ranked, they could appear where we think a user would rank that link if they vote like other users. They can also remove a link or comment from their personal view and switch to the shared view.</li>
<li>For each topic, users can maintain a personal log that is not shared with other users.</li>
<li>Pages will show usernames of other users "researching" the topic ordered by their activity level on the topic. Will implement a user messaging feature.</li>
</ul>
<p>&nbsp;</p>
<p>Basically I see each topic page as a research hub, which I want to enable multiple people to combine resources.</p>
<p>Here's a very preliminary screenshot to give you an idea of the basic future layout (content areas are not styled yet).</p>
<p><span class="full-image-block ssNonEditable"><span><img src="http://www.mtelligent.com/storage/FutureHOSY.png?__SQUARESPACE_CACHEVERSION=1326337154559" alt="" /></span></span></p>
<p>This will be a lot of work and not all of that may make it into the first iteration. Will provide updates as more work gets done.</p>]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-14544750.xml</wfw:commentRss></item><item><title>The Purpose</title><category>OnceFound</category><dc:creator>David San Filippo</dc:creator><pubDate>Fri, 06 Jan 2012 01:45:37 +0000</pubDate><link>http://www.mtelligent.com/journal/2012/1/5/the-purpose.html</link><guid isPermaLink="false">56912:489404:14457267</guid><description><![CDATA[<div>After writing the last <a href="http://www.mtelligent.com/journal/2012/1/4/the-plan.html">post </a>on my plan for developing the sites, I took a step back and began to think about what the point of this venture was. The value proposition, the business statement, the eventual business model. As a developer I was so enamored with building the site and leveraging these cool new technologies, I didn't stop and think what need I was solving.</div>
<p>&nbsp;</p>
<div>Now that it's live, and I've had time to reflect, I think there is a real need, a pain point that can be solved. And luckily for me, I think there is an opportunity that can exploited by these sites.</div>
<p>&nbsp;</p>
<div>When it comes to using search engines, I find myself search one of two ways. Entering keywords related to what I'm looking for, or just entering a question fully flushed into google and seeing what is returned. I suspect I am not alone in this approach.</div>
<p>&nbsp;</p>
<div>The problem with existing search results, is that although there are some good results, some are geared toward a single opinion, and you have to spend time going from site to site to figure out what to trust.&nbsp;Question and answer sites like Yahoo answers are great for this sort of thing, but you find yourself finding many variations of the same questions with different answers. There is no real authoritative resource that is "the answer" or "set of answers."</div>
<p>&nbsp;</p>
<div>My goal for the sites is to become that authoritative resource. Related links worth looking at can be organized and voted on. Comments specific to that question can be posted and discussed. Even the poll can be used to give people a general sense of what sentiment on the different answers are.</div>
<p>&nbsp;</p>
<div>While I suspected that I wasn't alone in typing fully flushed out questions into google, I was surprised to how frequently other people did it. When I used <a class="offsite-link-inline" href="https://adwords.google.com/select/KeywordToolExternal" target="_blank">google's keyword estimation tool</a> to see how many people search for questions like this every month here is what I found:</div>
<p>&nbsp;</p>
<div>
<ul>
<li>How often should you: 673,000 (broad), 201,000 (phrase)</li>
<li>Where Could: 55,600,000 (broad), 40,500 (phrase)</li>
<li>How Can You Get: 277,000,000 (broad), 110,000 (phrase)</li>
</ul>
</div>

<p>&nbsp;</p>

<div>Well you might think those are broad terms, but the keyword tool allows you to drill down even further and see the most common queries that include those terms.</div>

<p>&nbsp;</p>

<div><span class="full-image-block ssNonEditable"><span><img src="http://www.mtelligent.com/storage/googleKeywordTool.png?__SQUARESPACE_CACHEVERSION=1325814703227" alt="" /></span></span></div>

<p>&nbsp;</p>

<div>I&nbsp;know these are the broad matches, but if you add up all the global monthly searches for the top 200 keyword phrases that begin with the question in the three sites there are over 500 million global searches for those phrases.&nbsp;</div>

<p>&nbsp;</p>

<div>If I just focus on a subset of those to seed the topics with relevant data and work on SEO for questions I have a chance of ranking highly on, I could potential have a lot of traffic on my hands. Hopefully it will be enough traffic to be able to monetize some of that traffic with non intrusive advertising.&nbsp;</div>

<p>&nbsp;</p>

<div>I know it&rsquo;s a long road to get there, but that's the road I see. On the way, I know I need to build a community of folks who are invested in the site and it's content, and finding that audience will be difficult, but hopefully with perseverance, I'll get there.</div>

<p>&nbsp;</p>
]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-14457267.xml</wfw:commentRss></item><item><title>The Plan</title><category>OnceFound</category><dc:creator>David San Filippo</dc:creator><pubDate>Thu, 05 Jan 2012 02:18:01 +0000</pubDate><link>http://www.mtelligent.com/journal/2012/1/4/the-plan.html</link><guid isPermaLink="false">56912:489404:14443681</guid><description><![CDATA[<p>So the sites have been up a few days and I seeded the site with the most frequently searched for terms according to google's keyword estimation tool (whose top 200 search phrases add up to over 500 searches per month), though none of the pages have much in terms of content.</p>
<p>Here's my tentative plan for the sites: (in no particular order)</p>
<ul>
<li>Find a graphic designer to help come up with a better UI/User Experience. I think people can tell the site was designed by a developer. The current layout came from a free MVC template from the MVC 1.0 Gallery of templates on codeplex. If you know anyone who can help with this, let me know, otherwise I might have to outsource to oDesk, 99Designs or Crowdspring.</li>
<li>Implement a more robust caching strategy leveraging Azure's Caching.</li>
<li>Add a related Twitter Tweets widget to the topics pages. (Started looking at their API's and they looked interesting), and may give some default content to new pages.</li>
<li>Use Windows Azure Access Control Services (ACS) to enable login through Google and Facebook. Part of broader strategy to integrate the sites with Facebook via their API's. Plus already viewed the Pluralsight training on this, and looks pretty easy to implement.</li>
<li>Change the Voting strategy of the site. In the interest of reducing friction for using the site, currently anonymous users can vote and submit. JavaScript cookies are all that prevent users from voting over and over again. Eventually I'd like to build a more robust solution, storing user votes in Azure table storage. Right now all the data is in SQL Azure, but depending on how this goes, maybe its worth moving other items into Table or Blob Storage.</li>
<li>Create a "curator" role either for topics or tags, to allow notifications when content changes. Hoping to give users the ability to monitor the site. Also allow these users to modify content (answers, comments, etc)</li>
<li>Add a set of FAQ pages</li>
<li>Add RSS Feed Support for tags or topics.</li>
<li>Figure out how to implement a robust search function and implement it.</li>
<li>Leverage above mentioned search functionality to automatically identify and handle duplicate topics like google does with "Did you mean?". Maybe depending on the confidence level, display a page with similar sounding question instead of creating a new topic, like we do today, which I think is a cool feature for now.</li>
<li>Figure out how to monetize the site. I was rejected from Adsense due to a lack of content.&nbsp;</li>
<li>Come up with a better content strategy. I might end up finding a virtual assistant or someone to help seed the site with content.&nbsp;</li>
<li>Build out a better deployment strategy. I've grown tired of waiting for all the servers to be updated whenever I deploy a new package. I've heard of quick web deployments using the Windows Azure accelerator for web roles, and it's something I'm thinking of looking once the pain has become too much. And as far as automated builds go, I'm looking of forward to seeing how it will fit together with git. Right now, I'm pushing all my code to bit bucket before every deployment as a practice and it's worked out nice so far.</li>
<li>Create a catch all site, "OnceFound" to describe the purpose of all of this. Eventually the plan could be to acquire more domains and leverage the same technology, or perhaps allow others to use this technology to park question oriented domains (become a host).</li>
</ul>
<p>Sounds like enough&nbsp;to keep me busy for a while.</p>
<p>If anyone else has any other ideas, let me know.</p>
<p>&nbsp;</p>]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-14443681.xml</wfw:commentRss></item><item><title>Introducing WhereCould.com, HowCanYouGet.com</title><category>HCYG</category><category>HOSY</category><category>OnceFound</category><category>WhereCould</category><dc:creator>David San Filippo</dc:creator><pubDate>Mon, 02 Jan 2012 03:56:08 +0000</pubDate><link>http://www.mtelligent.com/journal/2012/1/1/introducing-wherecouldcom-howcanyougetcom.html</link><guid isPermaLink="false">56912:489404:14404981</guid><description><![CDATA[<p>As of now, the OnceFound network has grown by two additional sites. Both WhereCould.com and HowCanYouGet.com are now live.</p>
<p>To accomplish this, I didn't haven't to deploy anything additionally, and the domains are actually redirected to a single Windows Azure application instance.</p>
<p>The architecture of the codebase, allows the host names to drive the content of the site (title, branding, etc, thought not much is customized for now).&nbsp;</p>
<p>I also cleaned up some of the code and layout, added images for upvotes/downvotes, added google adsense (which appears blank until google approves) and made a few other minor tweaks.</p>
<p>Feel free to check them out.</p>
<p><a class="offsite-link-inline" href="http://www.wherecould.com/" target="_blank">http://www.wherecould.com/</a></p>
<p><a class="offsite-link-inline" href="http://www.howcanyouget.com/" target="_blank">http://www.howcanyouget.com/</a></p>]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-14404981.xml</wfw:commentRss></item><item><title>Introducing HowOftenShouldYou.com (HOSY)</title><category>HOSY</category><category>OnceFound</category><dc:creator>David San Filippo</dc:creator><pubDate>Sun, 01 Jan 2012 03:32:53 +0000</pubDate><link>http://www.mtelligent.com/journal/2011/12/31/introducing-howoftenshouldyoucom-hosy.html</link><guid isPermaLink="false">56912:489404:14396319</guid><description><![CDATA[<p>In the past month, I started coming up to speed on Windows Azure, having attended a developer camp in Microsoft's NYC offices in early December.&nbsp;</p>
<p>I then signed up for a Pluralsight membership and had been viewing a ton of their training materials on my new Kindle Fire using their app, and spent a good amount of time looking at their stuff for ASP.Net MVC, jquery and Windows Azure, all of which I have not had much experience with.</p>
<p>Wanting to work with all these technologies, and build something new, I spent the last 8 days developing a new site: "How Often Should You," a site which allows users to discuss, share information and vote related to questions users typically ask that start "How Often Should You."</p>
<p>Any question searched for automatically gets a topic specific page.&nbsp;In the interest of getting things live as quickly as possible, I've only implemented bare bones functionality for topics including:</p>
<p>
<ul>
<li>Submit and Vote on answers to the question, Poll Style.</li>
<li>Submit and Vote on Links related to the question</li>
<li>Submit, Reply and Vote on comments related to the question.</li>
<li>Tag each topic with keywords that will relate the question to other questions.</li>
</ul>
</p>
<p>There's also a basic account/login model, which isn't really used for much now, as for now anonymous users can vote and submit content.&nbsp;</p>
<p>There is plenty of room for feature improvements, and I already have a large backlog including rolling out sister sites for a few domain names I already registered (WhereCould, HowCanYouGet). I will actually be able to leverage the same servers and db as this is architected into the approach. It's part of my plan to create these sites under an umbrella site called "OnceFound," which right now is just another domain name I own.</p>
<p>Ultimately, I'm planning on running ads on the sites, and is this my first venture of this kind, I'm curious to see how successful this could be.&nbsp;</p>
<p>Under the hood, I'm using a bunch of technologies I haven't gotten a chance to work with before including: ASP.Net MVC3, Entity Framework 4.1 (code first), JQuery (JQuery UI and a few other plugins), SQL Azure (Plan on using table storage down the road) and of course Windows Azure. I'm also using GIT for the first time, and saving my code in a private repository on bitbucket, which has been a nice experience so far.</p>
<p>Luckily my MSDN subscription gives me a number of Azure computing hours for free, which I'm hoping will eliminate most of my costs for running this experiment. Right now the site is powered by 3 extra small instances.</p>
<p>I plan on posting more details about the technical implementation and planned features so stay tuned.</p>
<p>There is not a lot of content now, but I'll be adding generic pages based on search estimates from google's keyword estimator tool.</p>
<p>Check out the site here: <a class="offsite-link-inline" href="http://www.howoftenshouldyou.com/" target="_blank">http://www.howoftenshouldyou.com/</a></p>]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-14396319.xml</wfw:commentRss></item><item><title>Support Server Side Databinding with Sencha Touch and ASP.Net webforms</title><category>Sencha Touch</category><dc:creator>David San Filippo</dc:creator><pubDate>Thu, 25 Aug 2011 04:04:13 +0000</pubDate><link>http://www.mtelligent.com/journal/2011/8/25/support-server-side-databinding-with-sencha-touch-and-aspnet.html</link><guid isPermaLink="false">56912:489404:12620182</guid><description><![CDATA[<p>So I have working code to support binding server data to Sencha Touch components like lists and select widgets using the same data binding approach you typically use with other ASP.Net controls.</p>
<p>I created a "store" server control that will handle registering a data model and creating a store and filling it with data from the data source. Since it inherits from CompositeDataBounControl, you can set the DataSource property or specify the DataSourceID of any ASP.Net data source control. Finally you need only set your widgets store property to the same ID that the store uses to have that component work off of that store.</p>
<p>Here is the ASPX markup for a simple object data source, store and List control (similar to the List sencha touch sample):</p>
<p>&lt;asp:ObjectDataSource runat="server" SelectMethod="GetContacts" TypeName="Contact"&gt;&lt;/asp:ObjectDataSource&gt;</p>
<p>&lt;SD:Store runat="server" DataSourceID="ObjectDataSource1" &gt;</p>
<p>&nbsp; &lt;sorters&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;SU:Sorter property="FirstName" /&gt;</p>
<p>&nbsp; &lt;/sorters&gt;</p>
<p>&nbsp; &lt;getGroupString&gt;</p>
<p>&nbsp; function(record) {</p>
<p>&nbsp;&nbsp;&nbsp; return record.get('lastName')[0];</p>
<p>&nbsp; }</p>
<p>&nbsp; &lt;/getGroupString&gt;</p>
<p>&lt;/SD:Store&gt;</p>
<p>&lt;ST:List fullscreen="true" runat="server" grouped="true" indexBar="false" store="contactsStore"&gt;</p>
<p>&nbsp; &lt;div class="contact2"&gt;&lt;strong&gt;{firstName}&lt;/strong&gt; {lastName}&lt;/div&gt;</p>
<p>&lt;/ST:List&gt;</p>
<p>Couple things to note, the GetContacts method is a simple method that dummy's up some names in a list. I've also tested with a SqlDataSource with parameters which also works fine. Right now the component will render every property of the data item, though I can imagine adding properties to allow folks to control which columns will be rendered.</p>
<p>I also have been playing with PersistanceMode and the ParseChildren property to improve the readability. The store supports this for Sorters and Filters and the GetGroupString property, which allows you to easily specify a custom javaScript function to get the groups. The list component itself maps the inner content to the itemTpl property which allows you to easily setup a tpl template using the standard Sencha Touch {fieldName} syntax.</p>
<p>This markup will output the following javaScript into the head of the page:</p>
<p>Ext.regModel('contactsStore_Model', {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fields: ['firstName','lastName']</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var contactsStore = new Ext.data.Store({</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; model: 'contactsStore_Model'</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , data: [ {firstName:'Captain',lastName:'America'},</p>
<p>{firstName:'Tony',lastName:'Stark'},</p>
<p>{firstName:'Super',lastName:'Man'},</p>
<p>{firstName:'Wonder',lastName:'Woman'},</p>
<p>{firstName:'Peter',lastName:'Parker'} ]</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,storeId : 'contactsStore',</p>
<p>getGroupString : function(record) {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return record.get('lastName')[0];</p>
<p>&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var listMain = new Ext.List({</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fullscreen : true,</p>
<p>grouped : true,</p>
<p>indexBar : false,</p>
<p>itemTpl : '&lt;div class="contact2"&gt;&lt;strong&gt;{firstName}&lt;/strong&gt; {lastName}&lt;/div&gt;',</p>
<p>store : 'contactsStore'</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new Ext.Application({</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; launch: function() {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listMain.show();</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });</p>
<p>&nbsp;</p>
<p>I know&nbsp;the javaScript code rendered&nbsp;isn't the prettiest thing in the world, but it is functional. Even if you hate it, this approach could be used for simple scenarios or for rapid prototyping, after which you can take the rendered javaScript and manually clean and move.</p>
<p>I also have this working for the select form control. I eventually want to give some more thought on how to modify the control to better support other store scenarios binding to data sets external to the javaScript code (localStorage, REST, etc).</p>
<p>So far I have working samples that match the Carousel,&nbsp; Forms, Overlays, Tabs and Tabs2 samples.</p>
<p>Want to work on getting some of the Media controls and map control working and will update. I'm getting close to the point where I need to figure out what to call this library (nTouch?)&nbsp;and where to put it (codeplex, github, etc)</p>]]></description><wfw:commentRss>http://www.mtelligent.com/journal/rss-comments-entry-12620182.xml</wfw:commentRss></item></channel></rss>
