[CLOSED] question about combobox refresh

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] question about combobox refresh

    Hello

    I have 2 combobox to display linked to their store. Those store are loaded on main page load. When I expand my combo, the load is redone but I already have the data in the comb (I can see it). Question : is there a way to not fire the load when expand is trigered?
    Last edited by Daniil; Jun 18, 2012 at 2:10 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I think you should set up
    AutoLoad="false"
    for the Stores.
  3. #3
    Yes, but in this case , is my store will be loaded as startup, or I will have to initiate the load? I think second but just to be sure. I give it a try just now.
  4. #4
    Quote Originally Posted by feanor91 View Post
    Yes, but in this case , is my store will be loaded as startup, or I will have to initiate the load? I think second but just to be sure.
    I do not know for sure how your Stores are configured. But, according to the details you have provided in the initial post, I guess the Stores are configured with Proxy. In that case setting up
    AutoLoad="false"
    for such Store will cause:

    1. The Store won't load its data on the initial page load.
    2. The Store will automatically load its data when a user will expand the ComboBox.
  5. #5
    Quote Originally Posted by Daniil View Post
    I do not know for sure how your Stores are configured. But, according to the details you have provided in the initial post, I guess the Stores are configured with Proxy. In that case setting up
    AutoLoad="false"
    for such Store will cause:

    1. The Store won't load its data on the initial page load.
    2. The Store will automatically load its data when a user will expand the ComboBox.
    OK, I want excacly inverse function.

    Here a store example:

                    <ext:Store ID="stoChartsName" runat="server" AutoLoad="False">
                        <Proxy>
                            <ext:AjaxProxy Url="jsonDAL/ReturnJsonChartsName.aspx" Json="false" Timeout="300000" >
                                <Reader>
                                    <ext:JsonReader  Root="Data" TotalProperty="TotalRecords" >
                                    </ext:JsonReader>
                                </Reader>
                            </ext:AjaxProxy>
                        </Proxy>
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="INT_idCharts" Type="Int" />
                                    <ext:ModelField Name="STR_FriendlyName" type="String" />
                                    <ext:ModelField Name="STR_ChartName" type="String" />
                                </Fields>
                            </ext:Model>
                        </Model>        
                   </ext:Store>
  6. #6
    Then
    QueryMode="Local"
    for the ComboBox should help.
  7. #7
    Quote Originally Posted by Daniil View Post
    Then
    QueryMode="Local"
    for the ComboBox should help.
    Yes it does...Is there a trick to use this?
  8. #8
    Quote Originally Posted by feanor91 View Post
    s there a trick to use this?
    I am afraid I don't understand the question. Please clarify.
  9. #9
    Is there a side effect to use this property?
  10. #10
    I think, no.
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Refresh ComboBox after changing Store
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 27, 2013, 3:42 PM
  2. [CLOSED] ComboBox Question
    By Timothy in forum 2.x Legacy Premium Help
    Replies: 14
    Last Post: Jun 17, 2012, 5:32 PM
  3. [CLOSED] Question about the ComboBox....
    By RCN in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 09, 2012, 1:12 PM
  4. [CLOSED] Refresh icon on combobox
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 29, 2009, 6:14 AM
  5. Problem with combobox - On store refresh
    By Kaido in forum 1.x Help
    Replies: 2
    Last Post: Mar 05, 2009, 12:50 PM

Posting Permissions