Use componet column

  1. #1

    Use componet column

    i use component column is combobox in gridpanel.
    I only set store in Load_page()
    Question: I want to set other function not load_page
    Thanks
    Click image for larger version. 

Name:	GUI.PNG 
Views:	70 
Size:	29.1 KB 
ID:	24078
    Click image for larger version. 

Name:	code behind.PNG 
Views:	66 
Size:	14.1 KB 
ID:	24079
    Last edited by geoffrey.mcgill; Jul 14, 2015 at 2:20 AM.
  2. #2

    Use componet column

    If I understand correctly, you want to load the store with another function other than load_page , right?
    I use a Ext with C#.
    I use a DirectEvents>Expand.. example:

      ....................
                          </Store>
                                <Triggers>
                                    <ext:FieldTrigger Icon="Clear" Hidden="true" />
                                </Triggers>
                                <Listeners>
                                    <BeforeQuery Handler="this.getTrigger(0)[this.getRawValue().toString().length == 0 ? 'hide' : 'show']();" />
                                    <TriggerClick Handler="if (index == 0) { this.focus().clearValue(); trigger.hide();}" />
                                    <Select Handler="this.getTrigger(0).show();"></Select>
                                </Listeners>
                                <DirectEvents>
                                    <Expand OnEvent="cboSubFamilia_Expand" />
                                </DirectEvents>
                            </ext:ComboBox>
    And I have a method that calls the bind store, but it is in C#.
    I believe I can help you in something .

    protected void cboSubFamilia_Expand(object sender, DirectEventArgs e) { BindcboSubFamilia(); }
  3. #3
    thanks! but i want to set store for combo in event item click of control treepanel
  4. #4
    UPDATE: The answer is comming.
  5. #5
    Hi @baodk,

    Welcome to the Ext.NET forums!

    Please clarify do you have a set of predefined Stores which you want to apply to ComboBoxes? An individual Store for each ComboBox?

    Or you are having the only Store, but only need to load different data?

    I guess the discussion can be ended up with a lot of questions and answers trying to clarify the requirement, but the requirement will be left a little bit unclear. In my experience the best here could be providing us with a full runnable test case which we can run locally and see as much working configuration as you can implement so far.

Similar Threads

  1. Replies: 16
    Last Post: Jun 05, 2014, 10:19 AM
  2. Replies: 1
    Last Post: Aug 02, 2013, 7:16 PM
  3. [CLOSED] Hide the column option(on click of column header) for treegrid
    By AnulekhaK in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 01, 2012, 11:16 AM
  4. Replies: 3
    Last Post: Apr 08, 2010, 7:16 AM
  5. .Net Validator to Coolite Componet..? dinamyc
    By grmontero in forum 1.x Help
    Replies: 0
    Last Post: Dec 17, 2008, 5:38 PM

Tags for this Thread

Posting Permissions