वापस नहीं लौटा रहा है मैंने अपने रेडियो बटन फॉर्म के चयनित मूल्य प्राप्त करने के लिए मूल प्रक्रियाओं का पालन किया है।(extjs) फॉर्म में रेडियो बटन का चयनित मूल्य प्राप्त करें। मूल्य
Ext.getCmp('filter_form').getForm().getValues()['timespan']
लेकिन जब मैं कंसोल को यह चलाने के लिए, बजाय चयनित बटन का मूल्य प्राप्त करने की, मैं शब्द on
मिलती है:
....
xtype: 'radiofield',
name: 'timespan',
id: 'timespan',
value: 7,
checked: true,
fieldLabel: 'Time Span',
boxLabel: '7 days'
}, {
xtype: 'radiofield',
name: 'timespan',
value: '30',
fieldLabel: '',
labelSeparator: '',
hideEmptyLabel: false,
boxLabel: '30 days'
}, {
xtype: 'radiofield',
name: 'timespan',
value: '60',
fieldLabel: '',
labelSeparator: '',
hideEmptyLabel: false,
boxLabel: '60 days'
}, {
xtype: 'radiofield',
name: 'timespan',
value: 'all',
fieldLabel: '',
labelSeparator: '',
hideEmptyLabel: false,
boxLabel: 'All' ....
मैं जैसे तरीकों का इस्तेमाल किया गया है। क्या देता है?! मैंने GetValues, getForm, आदि के कई अलग-अलग combos की कोशिश की है, लेकिन मैं हमेशा on
या true
या false
के साथ समाप्त होता हूं। यहाँ क्या चल रहा है?
getGroupValue() मेरे लिए नहीं पढ़ रहा था। यह पहचाना नहीं गया था। मुझे getGroupValue() का उपयोग किये बिना एक 'वर्कअराउंड' मिला है। धन्यवाद! – hereiam