-
20 Feb 2009 8:31 AM #1
Checkboxes are checking properly.
Checkboxes are checking properly.
MessageHi,
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
-
20 Feb 2009 3:07 PM #2
Read this first
Read this first
Before you post: please take your time to read http://extjs.com/learn/Ext_Forum_Help and follow the instructions.
ExtJS 3.4, WAMP Apache 2.2.17, PHP 5.3.5, MySQL 5.5.8


Reply With Quote