﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Coolite Forums / Coolite Toolkit / *Premium Help*  / [SOLVED] ComboBox Stores / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Coolite Forums</description><link>http://www.coolite.com/forums/</link><webMaster>do-not-reply@coolite.com</webMaster><lastBuildDate>Tue, 07 Sep 2010 22:59:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: [SOLVED] ComboBox Stores</title><link>http://www.coolite.com/forums/Topic18583-16-1.aspx</link><description>&lt;P&gt;This worked.&lt;BR&gt;&lt;BR&gt;All I did was add to the store:&lt;BR&gt;&lt;BR&gt;[code]&lt;BR&gt;&amp;lt;Proxy&amp;gt;&lt;BR&gt;    &amp;lt;ext:DataSourceProxy /&amp;gt;&lt;BR&gt;&amp;lt;/Proxy&amp;gt;&lt;BR&gt;[/code]&lt;BR&gt;&lt;BR&gt;Thanks.&lt;/P&gt;</description><pubDate>Thu, 20 Aug 2009 10:43:08 GMT</pubDate><dc:creator>state</dc:creator></item><item><title>RE: [SOLVED] ComboBox Stores</title><link>http://www.coolite.com/forums/Topic18583-16-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Just add DataSourceProxy to the store &lt;br&gt;</description><pubDate>Thu, 20 Aug 2009 02:11:18 GMT</pubDate><dc:creator>vladsch</dc:creator></item><item><title>[SOLVED] ComboBox Stores</title><link>http://www.coolite.com/forums/Topic18583-16-1.aspx</link><description> Alright, another question.&lt;BR&gt;&lt;BR&gt;I have a ComboBox that needs to have an AutoComplete feature.  I have seen the example of with the Custom Search, however, it uses a WebService.  I am unable to use WebServices or anything that deviates from the architecture that is already in place here.&lt;BR&gt;&lt;BR&gt;Even if I could use the example code as a basis, I don't know if it would work for us since I'm dealing with a database of over 144 million records for the "search" of this field.  What we're trying to accomplish is very similar to the Google search field on the Google homepage.&lt;BR&gt;&lt;BR&gt;So, having said this.  Below is the code I have.&lt;BR&gt;&lt;BR&gt;.aspx:&lt;BR&gt;[code]&lt;BR&gt;    &amp;lt;ext:Store ID="strNames" runat="server" OnRefreshData="strNames_RefreshData"&amp;gt;&lt;BR&gt;        &amp;lt;Reader&amp;gt;&lt;BR&gt;            &amp;lt;ext:JsonReader&amp;gt;&lt;BR&gt;                &amp;lt;Fields&amp;gt;&lt;BR&gt;                    &amp;lt;ext:RecordField Name="NameId" /&amp;gt;&lt;BR&gt;                    &amp;lt;ext:RecordField Name="FullName" /&amp;gt;&lt;BR&gt;                &amp;lt;/Fields&amp;gt;&lt;BR&gt;            &amp;lt;/ext:JsonReader&amp;gt;&lt;BR&gt;        &amp;lt;Reader&amp;gt;&lt;BR&gt;    &amp;lt;/ext:StoreID&amp;gt;&lt;BR&gt;&lt;BR&gt;    &amp;lt;ext:ComboBox ID="cbNames" runat="server" StoreID="strNames" DisplayField="FullName" ValueField="NameId" HideTrigger="true" MinChars="1" /&amp;gt;&lt;BR&gt;[/code]&lt;BR&gt;&lt;BR&gt;.aspx.cs:&lt;BR&gt;[code]&lt;BR&gt;protected void strNames_RefreshData(object sender, StoreRefreshDataEventArgs e)&lt;BR&gt;{&lt;BR&gt;    // This function should take the text already typed and search for any records beginning&lt;BR&gt;    // with the values typed. Name Search is looking in the database is:&lt;BR&gt;    // SELECT TOP 10 * FROM Names WHERE FullName LIKE search + '%'&lt;BR&gt;&lt;BR&gt;    string search = ((ListItem)cbNames.Value).Value;&lt;BR&gt;    DataTable names = null;&lt;BR&gt;&lt;BR&gt;    if (!string.IsNullOrEmpty(search))&lt;BR&gt;    {&lt;BR&gt;        // Make database connection here, return results as DataTable&lt;BR&gt;        names = namesDb.NameSearch(search);&lt;BR&gt;    }&lt;BR&gt;&lt;BR&gt;    strNames.DataSource = names;&lt;BR&gt;    strNames.DataBind();&lt;BR&gt;}&lt;BR&gt;[/code]&lt;BR&gt;&lt;BR&gt;I was expecting since I already bound the ComboBox to the Store that whenever a user types a character it would fire the RefreshData on the Store to get "new" data.  But that doesn't seem to work.&lt;BR&gt;&lt;BR&gt;Any help?</description><pubDate>Wed, 19 Aug 2009 15:45:38 GMT</pubDate><dc:creator>state</dc:creator></item></channel></rss>