Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var wardName = Ext.create('Ext.data.Store', {
- id : 'visittype',
- fields : [
- {
- name : 'id',
- type : 'integer',
- },
- {
- name : 'wardName',
- }
- ],
- remoteGroup : true,
- remoteSort : true,
- proxy : {
- type : 'rest',
- url : 'pmsRest/wards',
- reader : {
- root : "wardMaster",
- idProperty : 'id'
- }
- },
- autoLoad : true,
- });
- {
- xtype : 'combo',
- name : 'wardName',
- labelStyle : 'color:black;font-weight:bold;width:250px;padding:10;',
- labelSeparator : "",
- id : 'wardName',
- width:'33%',
- fieldLabel : 'Ward',
- triggerAction : 'all',
- store : wardName,
- displayField : 'wardName',
- valueField : 'id',
- multiSelect : false,
- typeAhead : true,
- //disabled: true,
- listeners : {
- change : function(combo) {
- Ext.getCmp('bedName').bindStore(loadBedName());
- }
- },
- allowBlank : false,
- //enableKeyEvents : true,
- },
- listeners: {
- load: function(){
- this.add({
- id: 0,
- name: 'All'
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement