1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    7
    Vote Rating
    0
    shriyansp is on a distinguished road

      0  

    Default Checkboxes are not checking properly.

    Checkboxes are not checking properly.


    Hi,

    Please help me on this, its an urgent for me, i am designing one page consisting of combo and checkboxes. i need to enable(checked) checkbox when i am selecting the combobox value. first time i am able to check all the checkboxes but after two or three operations it is not getting checked properly, i have written code for that but it is not reflecting. i have checked with plain html code also there it is working fine. please try to help my problem. is there any way to form refresh, thease checkboxes are in formpanel.

    here i am sending the code also.

    var comboForm = new Ext.form.FormPanel({
    frame:true,
    height:250,
    bodyStyle:'padding:5px 5px 0',
    cls: 'left-right-buttons',
    width: 980,

    layout:'absolute',
    title: '<b><center><font size=2> Defect Summary</font></center></b>',
    items:[{
    x:0,
    y:10,
    id:'fgp',
    xtype:'combo',
    store: store,
    typeAhead: true,
    displayField:'displaystatus',
    mode: 'local',
    forceSelection: true,
    triggerAction: 'all',
    fieldLabel: 'Display Status',
    name: 'fgpart',
    width:100,
    hideTrigger:false,
    selectOnFocus:true,
    anchor:'95%',
    listeners:{
    select: function(){
    if(comboForm.findById("fgp").getValue()=="SelectAl l")
    {
    // var hh= comboForm.findById("1").checked;
    comboForm.findById('1').checked=true;
    // alert(comboForm.findById("xyz").checked="true");

    }

    }
    }


    },


    {x:10,y:40,id:'xyz',xtype: 'checkbox', itemCls: 'x-check-group-alt', boxLabel: 'Active', name: 'Active'},
    {x:10,y:60,id:'2',xtype: 'checkbox', itemCls: 'x-check-group-alt', boxLabel: 'Prod Fixed', name: 'xyz'},
    {x:10,y:80,id:'3',xtype: 'checkbox', itemCls: 'x-check-group-alt', boxLabel: 'Cancel Entry', name: 'CancelEntry'},
    {x:200,y:40,id:'4',xtype: 'checkbox', itemCls: 'x-check-group-alt', boxLabel: 'QA Cfm Fixed', name: 'CfmFixed'},
    {x:200,y:60,id:'5',xtype: 'checkbox', itemCls: 'x-check-group-alt', boxLabel: 'QA UAI', name: 'QAUAI'}],

    buttons: [{
    id: 'display',
    text: '<b><font color="#25587E">Update Display Status Filter</font></b>',
    align : 'left',
    width:100,
    formBind: true,

    handler:function(){

    var param1=comboForm.getForm().getValues(true).replace (/&/g,', ');
    alert(param1);

    }
    }]

    });

    ******************************
    my comboForm consisting of one combo box, one button, 5 checkboxes. based on the combo selection checkbox should checked.

    please help me.


    Thanks & Regards,
    Shriyans

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Shriyans, we have a help section

Thread Participants: 1

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