[CLOSED] [1.0] GridPanel Group Command (Menu Type ) show/hide on demand

  1. #1

    [CLOSED] [1.0] GridPanel Group Command (Menu Type ) show/hide on demand

    hi,

    in the example
    https://examples1.ext.net/#/GridPane...Group_Command/

    i want to hide/show the menu group command upon clicking on other group command like the 'SelectGroup' in the above example.

    how i can do that "grdPnl.getColumnModel()..." or what because groupcommand has only command name and i didn't find method in extjs
    that let me get a column by commandName...

    please help ASAP!
    Last edited by Daniil; Dec 15, 2010 at 10:27 AM. Reason: [CLOSED]
  2. #2
    Hi,

    It would look the same as in the following example.

    The idea is:
    1. Using Prepare methods to set hidden of commands in according to some conditions (for example, a value of some record's field)
    2. Change a condition (for example, a value of some record's field)
    3. Causing calling of Prepare methods using refreshes methods.

    GridPanel1.getView().refresh()
    or
    GridPanel1.getView().refreshRow() // if possible
    See also
    https://examples1.ext.net/#/GridPane...pare_Commands/
    https://examples1.ext.net/#/GridPane...epare_Toolbar/

Similar Threads

  1. Replies: 7
    Last Post: Jun 17, 2014, 10:14 AM
  2. Show/Hide Image Command from Code behind
    By Nagaraj K Hebbar in forum 1.x Help
    Replies: 2
    Last Post: Nov 26, 2013, 7:22 PM
  3. [CLOSED] Auto Show Hide Menu in Toolbar
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Dec 03, 2010, 3:25 PM
  4. GridPanel - Group Command disable ico
    By jwcelyo in forum 1.x Help
    Replies: 0
    Last Post: Nov 16, 2010, 4:06 PM
  5. Replies: 11
    Last Post: Aug 30, 2010, 9:28 PM

Posting Permissions