[CLOSED] How to use a Trigger to hide a GridPanel

  1. #1

    [CLOSED] How to use a Trigger to hide a GridPanel

    Hello,

    How the title says, I want to hide a GridPanel when I click the trigger in the combobox.

    The next code is for clear the text in the combobox, I want to use this trigger to do both.

    <Listeners>
            <Change Handler="this.getTrigger(0).show();" />
            <BeforeQuery Handler="this.getTrigger(0)[this.getRawValue().toString().length == 0 ? 'hide' : 'show']();" />
            <TriggerClick Handler="if (index == 0) { 
                                                       this.clearValue();
                                                }" />
             </Listeners>
    How I can do that?

    Thanks a lot.
    Last edited by Daniil; Dec 11, 2014 at 11:01 AM. Reason: [CLOSED]
  2. #2
    Hi @opendat2000,

    I would try this.
    App.GridPanel1.hide();
  3. #3
    Hi Daniil,


    Thanks a lot for your reply, the code line you proposed worked perfectly.

    Please close the thread.

    Again thanks a lot for your reply.

Similar Threads

  1. [CLOSED] Hide Trigger when click Gridpanel
    By speedstepmem4 in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 01, 2014, 6:37 AM
  2. [CLOSED] Hide Trigger
    By paulc in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 14, 2014, 1:25 PM
  3. [CLOSED] [1.5 Bug?] Hide does not trigger listener
    By michaeld in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Nov 29, 2012, 4:19 AM
  4. [CLOSED] ComboBox Hide Trigger
    By Adrian in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 09, 2012, 10:36 AM
  5. [CLOSED] Show/hide trigger in triggerField during a DirectEvent
    By alainfo in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 26, 2011, 7:25 AM

Tags for this Thread

Posting Permissions