jonnerd154
14 Apr 2010, 9:00 PM
Hi guys. I have a problem that has manifested itself twice in my app so far and I can't figure it out. I'm sure it's a simple mistake I've made.
I have this:
clientsLiveGrid.on('rowclick', function(grid, rowIndex, e){
var record = grid.getStore().getAt(rowIndex); // Get the Record
var clientId = record.get("u_id");
var win = null;
var form = null;
// We have a window open...close it, then destroy it.
if(clientsWin){
clientsWin.hide();
clientsWin = null;
}
clientsWin = new Ext.Window({
layout:'fit',
title: 'Client Detail: ' + record.get('first_name') + ' ' + record.get('last_name'),
width:500,
height:300,
closeAction:'hide',
plain: true,
modal: true,
items: new Ext.FormPanel({
labelWidth: 75,
border:false,
width: 350,
id: 'clientEditForm',
url : 'data/commit/clients.php',
items: {
xtype:'tabpanel',
activeTab: 0,
defaults:{bodyStyle:'padding:10px'},
items:[{
height: 202,
title:'General',
layout:'form',
cls: "blackText",
defaults: {width: 230, itemCls: 'form-label'},
defaultType: 'textfield',
items: [{
fieldLabel: 'Prefix',
name: 'title',
value: record.get('title')
},{
fieldLabel: 'First Name',
name: 'first_name',
allowBlank:false,
value: record.get('first_name')
},{
fieldLabel: 'Last Name',
name: 'last_name',
allowBlank:false,
value: record.get('last_name')
},{
fieldLabel: 'Member ?',
xtype: 'checkbox',
boxLabel: '',
name: 'member',
inputValue: 1,
id: 'memberCheck',
itemId: 'memberCheck',
labelSeparator: '',
},{
fieldLabel: 'VIP ?',
xtype: 'checkbox',
boxLabel: '',
name: 'vip',
inputValue: 1,
id: 'vipCheck',
itemId: 'vipCheck',
labelSeparator: '',
},{
xtype:'hidden',
name:'u_id',
value: record.get('u_id')
}]
},{
title:'Contact Info',
layout:'form',
defaults: {width: 230, itemCls: 'form-label'},
defaultType: 'textfield',
{ .... }Some times everything looks great:
19914
BUT sometimes it looks like this:
19913
Any idea what might be causing this? I searched Google and the forum search here to no avail. Thank you to anyone with some insight!
I have this:
clientsLiveGrid.on('rowclick', function(grid, rowIndex, e){
var record = grid.getStore().getAt(rowIndex); // Get the Record
var clientId = record.get("u_id");
var win = null;
var form = null;
// We have a window open...close it, then destroy it.
if(clientsWin){
clientsWin.hide();
clientsWin = null;
}
clientsWin = new Ext.Window({
layout:'fit',
title: 'Client Detail: ' + record.get('first_name') + ' ' + record.get('last_name'),
width:500,
height:300,
closeAction:'hide',
plain: true,
modal: true,
items: new Ext.FormPanel({
labelWidth: 75,
border:false,
width: 350,
id: 'clientEditForm',
url : 'data/commit/clients.php',
items: {
xtype:'tabpanel',
activeTab: 0,
defaults:{bodyStyle:'padding:10px'},
items:[{
height: 202,
title:'General',
layout:'form',
cls: "blackText",
defaults: {width: 230, itemCls: 'form-label'},
defaultType: 'textfield',
items: [{
fieldLabel: 'Prefix',
name: 'title',
value: record.get('title')
},{
fieldLabel: 'First Name',
name: 'first_name',
allowBlank:false,
value: record.get('first_name')
},{
fieldLabel: 'Last Name',
name: 'last_name',
allowBlank:false,
value: record.get('last_name')
},{
fieldLabel: 'Member ?',
xtype: 'checkbox',
boxLabel: '',
name: 'member',
inputValue: 1,
id: 'memberCheck',
itemId: 'memberCheck',
labelSeparator: '',
},{
fieldLabel: 'VIP ?',
xtype: 'checkbox',
boxLabel: '',
name: 'vip',
inputValue: 1,
id: 'vipCheck',
itemId: 'vipCheck',
labelSeparator: '',
},{
xtype:'hidden',
name:'u_id',
value: record.get('u_id')
}]
},{
title:'Contact Info',
layout:'form',
defaults: {width: 230, itemCls: 'form-label'},
defaultType: 'textfield',
{ .... }Some times everything looks great:
19914
BUT sometimes it looks like this:
19913
Any idea what might be causing this? I searched Google and the forum search here to no avail. Thank you to anyone with some insight!