1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    40
    Vote Rating
    0
    n01champion is on a distinguished road

      0  

    Default How do you retrieve checked item in menu and submenu?

    How do you retrieve checked item in menu and submenu?


    I have a checkItem group and I set the first item to checked.. how do i call my checkHandler, of the first item that is already checked, when the page loads.

    I have a menu checkItem group and a submenu checkItem group

    thanks in advance

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Can you explain a little further? Thanks.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    40
    Vote Rating
    0
    n01champion is on a distinguished road

      0  

    Default


    ok here is little snippet of my code....

    How do I get the "id" of the first item (DE) in the submenu

    OR

    How do i detect the first item which is already checked and run its function on first load.. because when you define it as checked and then loads the function doesnt get called.. you have to click on the second item then click back on the first item.

    Code:
    var seqMenu = new Ext.menu.Menu({
    	id: 'seqMenu',
    	items: [
    	     {
    		id: 'pieceType',
    		text: 'Piece Type',
    		menu: {
    			items:[
    				new Ext.menu.CheckItem({
    					id: 'DE',
    					text:'Default/All',
    					checked:true,
    					group:'piecetype',
    					checkHandler: mailPlants.sequenceEditor
    				}),
    				new Ext.menu.CheckItem({
    					id: 'LT',
    					text:'Letters',
    					group:'piecetype',
    					checkHandler: mailPlants.sequenceEditor
    				}),
    				new Ext.menu.CheckItem({
    					id: 'FL',
    					text:'Flats',
    					group:'piecetype',
    					checkHandler: mailPlants.sequenceEditor
    				}),
    				new Ext.menu.CheckItem({
    					id: 'LF',
    					text:'Letters or Flats',
    					group:'piecetype',
    					checkHandler: mailPlants.sequenceEditor
    				}),
    				new Ext.menu.CheckItem({
    					id: 'CO',
    					text:'Catalog Outlets',
    					group:'piecetype',
    					checkHandler: mailPlants.sequenceEditor
    				}),
    				new Ext.menu.CheckItem({
    				        id: 'CT',
    					text:'Catalogs',
    					group:'piecetype',
    					checkHandler: mailPlants.sequenceEditor
    				})
    			]
    		}
    	}]
    });

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    140
    Vote Rating
    0
    Belgabor is on a distinguished road

      0  

    Default


    Maybe I don't fully understand, but can't you simply call the callback after initializing the menu?
    Code:
    mailPlants.sequenceEditor({id: 'DE'}, true);

Similar Threads

  1. Toolbar item enhancement. Item align:"right" confi
    By Animal in forum Ext 2.x: Help & Discussion
    Replies: 40
    Last Post: 8 Jan 2008, 6:28 PM
  2. Color Menu Item Bug
    By John Huang in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 2 Apr 2007, 6:29 AM
  3. About the implementation of DOWNLOADS menu item of yui-ext
    By codeexploiter in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 20 Feb 2007, 9:46 PM
  4. New Drag and Drop Package checked in
    By jack.slocum in forum Community Discussion
    Replies: 5
    Last Post: 23 Jan 2007, 12:16 PM
  5. CustomEvent sent by Menu Item
    By young_matthewd in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 4 Nov 2006, 2:22 PM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar