Results 1 to 2 of 2

Thread: CheckMenuItem in Grid columns menu not working

  1. #1
    Ext User
    Join Date
    Jun 2009
    Posts
    25
    Vote Rating
    0
      0  

    Default CheckMenuItem in Grid columns menu not working

    I am extending the GridView class and overriding the createContextMenu function to create a custom menu for the grid columns. I add a submenu of radio checkmenuitems, but the states do not change when selected. Anyone know why this doesnt work? I am using the latest 2.0 RC:


    item = new MenuItem();
    item.setText("Data Format");
    final Menu formatmenu = new Menu();


    for(int i = 0; i < data_formats.length; i++){

    CheckMenuItem checkitem = new CheckMenuItem();
    checkitem.setText(data_formats[i]);
    if(i == 0){checkitem.setChecked(true);}
    checkitem.setGroup("dataformat");
    checkitem.addSelectionListener(df_listener);
    formatmenu.add(checkitem);

    }

    item.setSubMenu(formatmenu);

  2. #2
    Ext User
    Join Date
    Jun 2009
    Posts
    25
    Vote Rating
    0
      0  

    Default

    Note: The code above does not work even with the line

    checkitem.addSelectionListener(df_listener);


    taken out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •