-
24 Jun 2008 7:39 AM #21
Getting error sometimg when trying to drag last item from the "TO" list to back
Getting error sometimg when trying to drag last item from the "TO" list to back
Getting error sometimg when trying to drag last item from the "TO" list to back to "FROM" list. In order to replicate this use the default example which comes with ext 2.3 then drag the first item "TEN" from the "selected side" back to the "available side" now do this 2-3 times with the same item "TEN" you will see the error.
-
24 Jun 2008 7:43 AM #22
Dragging does not work when switching switchToFrom flag to false
Dragging does not work when switching switchToFrom flag to false
Dragging does not work when switching switchToFrom flag to false
-
15 Jan 2009 1:36 AM #23
items are not invisible in IE (Ext.ux.multiselect)
-
29 May 2009 3:26 AM #24
hi,
How to capture the selected values with itemselector or multiselect at the server side to store in the database usingn php.
-
4 Jun 2009 5:37 AM #25
hi fede,
i tried to use this code but there is some error.
Here is my code.....
and the error is:Code:function add_doctor(){ Ext.QuickTips.init(); var doc_win; var datastore = new Ext.data.Store({ url: 'fetch_practice_multiselect.php', reader: new Ext.data.JsonReader({ id: 'practice_id', root: 'results', totalProperty: 'total' }, [ {name: 'practice_id', mapping: 'practice_id'}, {name: 'practice_name', mapping: 'practice_name'} ]) }); dsLocalizaciones.load(); var store = new Ext.data.SimpleStore({ fields: [ {name: 'practice_id', mapping: 'practice_id'}, {name: 'practice_name', mapping: 'practice_name'} ] }); var doc_form = new Ext.form.FormPanel({ standardSubmit: true, frame:true, title: '', border:false, closeAction: 'hide', labelAlign:'right', width: 800, defaults: {width: 683}, defaultType: 'textfield', monitorValid:true, items: [{ fieldLabel: 'Doctor Name', name: 'doctor_name', id: 'doctor_name', allowBlank:false }, { fieldLabel: 'Degree', id: 'degree', name: 'degree' }, { fieldLabel:"Itemselector", xtype:"itemselector", name:"itemselector", fromStore: datastore , toStore: store, msWidth:200, msHeight:200, valueField:"practice_id", displayField:"practice_name", toLegend:"Selected", fromLegend:"Practices", toTBar:[{ text:"Clear", handler:function(){ var i=doc_form.getForm().findField("itemselector"); i.reset.call(i); } }] } ] }); //create the window to display the form if(!doc_win){ doc_win = new Ext.Window({ title: 'Add Doctor', width: 815, height: 560, draggable: false, plain: true, modal: true, closeAction: 'hide', resizable:false, //layout:'fit', items: doc_form, buttons: [{ text: 'Submit', handler: function() { waitTitle:'Processing'; doc_form.getForm().getEl().dom.action = 'add_doctor.php'; doc_form.getForm().getEl().dom.method = 'POST'; doc_form.getForm().submit(); } }, { text: 'Cancel', handler: function() { doc_form.getForm().getEl().dom.action = 'doctor.php'; doc_win.close(); } } ] }); } doc_win.show(); }
types[config.xtype || defaultType] is not a constructor
[IMG]chrome://firebug/content/blank.gif[/IMG] return new types[config.xtype || defaultType](config);
-
15 Jun 2009 11:35 PM #26
Error: this.fields.get(c) is undefined
Error: this.fields.get(c) is undefined
hai
I am trying to use your code for put itemselecter. I am loading data from database. But it is bot displaying and showing the error.
Error: this.fields.get(c) is undefined
i am struggling with this from yesterday. But i am not getting solution. Please can you please tel me where i am doing wrong? My code is below.
PHP Code:Ext.onReady(function(){
Ext.QuickTips.init();
var dsLocalizaciones = new Ext.data.Store({
url: '../php/labor_addressbook_new.php?act=select',
reader: new Ext.data.JsonReader({
id: 'email_auto',
root: 'results',
remoteSort:true,
totalProperty: 'total'
}, [
{name: 'email_auto', mapping: 'email_auto'},
{name: 'email_name', mapping: 'email_name'},
{name: 'email_address', mapping: 'email_address'}
])
});
dsLocalizaciones.load();
var store = new Ext.data.SimpleStore({
fields: [
{name: 'email_auto', mapping: 'email_auto'},
{name: 'email_name', mapping: 'email_name'},
{name: 'email_address', mapping: 'email_address'}
]
});
var formItemSelector = new Ext.form.FormPanel({
labelWidth: 75,
width:600,
items:[{
fieldLabel:"Itemselector",
xtype:"itemselector",
name:"itemselector",
fromStore: dsLocalizaciones,
toStore: store,
msWidth:200,
msHeight:200,
valueField:"email_address",
displayField:"email_name",
toLegend:"Seleccionados",
fromLegend:"Disponibles",
toTBar:[{
text:"Clear",
//handler:function(){
// var i=formItemSelector.getForm().findField("itemselector");
// i.reset.call(i);
//}
}]
}],
});
formItemSelector.render("itemselector1");
});
Abisha.M.G.
Zen-E-Solutions
Chennai.
-
29 Sep 2009 9:12 PM #27
-
22 Jun 2010 11:24 AM #28
Hello everybody, maybe one of you can help me....i have this code in a Formpanel :
xtype: 'itemselector',
name: 'itemselector',
id: 'itemselector',
fieldLabel: '<spring:message code="measuringDataGroup.titelAnalys"/>',
imagePath: '../smis-js/extjs3/ux/images/',
multiselects: [{
width: 250,
height: 300,
store: analysenStore,
displayField: 'name',
valueField: 'dataId'
},{
width: 250,
height: 300,
store: ownGroupStore,
displayField: 'name',
valueField: 'dataId'
}]
but i had no scrollbars...in the available and selected boxes...
and another question is, how can i filter in the available box? i have in the formpanel a bottombar with a textfield and with that i would like to filter....


Reply With Quote
