1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    hyderabad
    Posts
    34
    Vote Rating
    0
    nawin.muttineni@gmail.com is on a distinguished road

      0  

    Default Unanswered: radio buttons are displaying multiple time in a panel

    Unanswered: radio buttons are displaying multiple time in a panel


    Hi,
    I have a panel with some text fields, date fields,combos,radio buttons.
    Every thing is working properly, but radio buttons are displaying somtimes twice, sometimes thrice.
    can any one please help me to resolve this issue.
    Bellow is my code..



    Ext.define('tz.ui.InvoiceSearchPanel', {
    extend: 'Ext.form.Panel',

    bodyPadding: 10,
    title: 'Search Invoices',
    frame:true,
    anchor:'80%',
    autoScroll:true,
    fieldDefaults: { msgTarget: 'side',labelAlign: 'right'},


    initComponent: function() {
    var me = this;

    me.employeeCombo = new tz.ui.EmployeeCombo({
    store: ds.allEmployeeStore,
    labelAlign: 'right',
    listeners:{
    scope:me,
    select:function(combo, records) {
    app.timesheetService.getEmpProjectCodeList(records[0].data.id, me.loadEmpBillingRateCombo, me);
    }
    },
    tabIndex:1
    });
    me.employeeCombo.allowBlank = true;
    me.employeeCombo.forceSelection = false;
    me.employeeCombo.valueField = 'fullName';
    me.employeeCombo.name = 'name';

    me.empBillingRateCombo = new tz.ui.EmployeeRateCombo({
    store : ds.empBillingRateOptionStore,
    labelAlign: 'right',
    fieldLabel:'Project-Code',
    editable: false,
    tabIndex:2,
    width:300
    });

    var sortingStore = Ext.create('Ext.data.Store', {
    fields: ['label', 'value'],
    data : [
    {"label":"Invoice NO", "value":"invoiceNo"},
    {"label":"Status", "value":"status"},
    {"label":"Billing From", "value":"billingFrom"},
    {"label":"Billing To", "value":"billingTo"},
    {"label":"Invoice Date", "value":"invoiceDate"},
    {"label":"Invoice Amount", "value":"invoiceAmount"},
    {"label":"Receipt Amount", "value":"totalReceiptAmount"}
    ]
    });


    me.sortingCombo = Ext.create('Ext.form.ComboBox', {
    fieldLabel: 'Sort By',
    store: sortingStore,
    id : 'invoiceSorting',
    name : 'sortingCombo',
    queryMode: 'local',
    displayField: 'label',
    value:'billingTo',
    labelAlign: 'right',
    valueField: 'value'

    });

    me.radioGroupInvoice =
    {
    xtype: 'radiogroup',
    width: 100,
    padding:'0 0 0 130%',
    fieldLabel: '',
    name: 'invoiceOrder',
    id: 'invoiceOrder',
    //cls: 'x-check-group-alt',
    // Arrange radio buttons into two columns, distributed vertically
    columns: 2,
    vertical: true,
    items: [
    {
    xtype: 'radiofield',
    boxLabel: 'ASC',
    name: 'rb',
    id:'ASC' ,
    inputValue: '1'
    },{
    xtype: 'radiofield',
    boxLabel: 'DESC',
    name: 'rb',
    id:'DESC',
    inputValue: '2',
    checked: true,
    }
    ]
    };


    me.items = [
    {
    xtype:'container',
    layout: 'column',
    items :[{
    xtype: 'container',
    columnWidth:.5,
    items: [me.employeeCombo,{
    xtype:'textfield',
    fieldLabel: 'Vendor Name',
    name: 'vendorName'
    },me.sortingCombo,me.radioGroupInvoice]
    },{
    xtype: 'container',
    columnWidth:.5,
    items: [
    // me.empBillingRateCombo,
    {
    xtype:'textfield',
    fieldLabel: 'Invoice No',
    name: 'invoiceNo'
    },{
    xtype:'textfield',
    fieldLabel: 'Status',
    name: 'status'
    },{
    xtype:'datefield',
    fieldLabel: 'Billing From',
    name: 'billingFrom'
    },{
    xtype:'datefield',
    fieldLabel: 'Billing To',
    name: 'billingTo'
    }]
    }]
    }
    ];
    me.buttons = [
    {
    text : 'Search',
    scope: this,
    handler: this.search
    },
    {
    text : 'Reset',
    scope: this,
    handler: this.reset
    }
    ]

    me.listeners = {
    afterRender: function(thisForm, options){
    this.keyNav = Ext.create('Ext.util.KeyNav', this.el, {
    enter: this.search,
    scope: this
    });
    }
    }

    me.callParent(arguments);
    },


    search : function() {

    },


    reset:function(){
    this.form.reset();
    }
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Answers
    3541
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    There is nothing here that should do that. I cannot reproduce it with sample code
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1