Get combo value on ribbon

Hi.

Is there any way to get combo value on dhxRibbon?

One more question - I need a dhtmlx calendar object to be attached to an input on the dhxRibbon.
Is there a way to retrieve the input object so I can attach the calendar to it?

Thanks.

Hi
You can use the next code sample:

[code]

Init from object // add once, make sure dhtmlx is loaded dhtmlXRibbon.prototype.getCombo = function(id){ var item = this._items[id]; if (item == null || item.type != "buttonCombo") return null; return item.combo; };
	// to get combo
	var myRibbon, combo;
	var data = {
		parent: "ribbonObj",
		icons_path: "../samples/dhtmlxRibbon/common/ribbon/",
		items: [
			{type:'block', text:'Block 1', mode:'cols', list:[
				{type:'buttonCombo', name: 'comboTest1', text:'buttonCombo 1', items: [
					{value: "1", text: "The Adventures of Tom Sawyer"},
					{value: "2", text: "The Dead Zone", selected: true},
					{value: "3", text: "The First Men in the Moon"},
					{value: "4", text: "The Girl Who Loved Tom Gordon"},
					{value: "5", text: "The Green Mile"},
					{value: "6", text: "The Invisible Man"},
					{value: "7", text: "The Island of Doctor Moreau"},
					{value: "8", text: "The Prince and the Pauper"}
				]},

				{type: "group", list: [
					{type:'buttonCombo', name: 'comboTest2', text:'buttonCombo 2', items: [
						{value: "1", text: "The Adventures of Tom Sawyer"},
						{value: "2", text: "The Dead Zone", selected: true},
						{value: "3", text: "The First Men in the Moon"},
						{value: "4", text: "The Girl Who Loved Tom Gordon"},
						{value: "5", text: "The Green Mile"},
						{value: "6", text: "The Invisible Man"},
						{value: "7", text: "The Island of Doctor Moreau"},
						{value: "8", text: "The Prince and the Pauper"}
					]}
				]},
				{type:'buttonCombo', name: 'comboTest3', width: 200, items: [
					{value: "1", text: "The Adventures of Tom Sawyer"},
					{value: "2", text: "The Dead Zone", selected: true},
					{value: "3", text: "The First Men in the Moon"},
					{value: "4", text: "The Girl Who Loved Tom Gordon"},
					{value: "5", text: "The Green Mile"},
					{value: "6", text: "The Invisible Man"},
					{value: "7", text: "The Island of Doctor Moreau"},
					{value: "8", text: "The Prince and the Pauper"}
				]}
			]}
		]
	};

	function doOnLoad() {
		myRibbon = new dhtmlXRibbon(data);
		myRibbon.attachEvent("onSelectOption",function(id,ind,text){
			combo = myRibbon.getCombo(id);

// alert(combo.getActualValue())
alert(combo.getComboText())
});

	};
</script>
[/code]