I have a dropdown for datepicker that im using to select dates. I'm using the Ext.menu.Checkitem to create a dropdown like below:
Code:
  
fields: [
      filter: {  ype: 'string',
                      xtype: 'superdate-search-field',
                     fieldLabel: "Date"
                    }
]
Code:
dd = {};            
dd.week = new Ext.menu.CheckItem({  
    text: 'Week'
   });
dd.month = new Ext.menu.CheckItem({                  
text: 'Week'
            });
dd.year = new Ext.menu.CheckItem({                
 text: 'Week'

            });
            dd.lastWeek = new Ext.menu.CheckItem({                  
text: 'Week'
            });
From the above list I'd like to remove 'week' and 'month' items from the list on render.
Code:
 this.on('render', function() {                
//remove the 'week' and 'month' options

            }, this});
Is there any method or a specific way to do so?