私のコード:
function onLoad(e)
{
var element = document.getElementById('cmbGender');
$.ajax({ type: "POST",
url: "@(Url.Action("LoadGenderNames", "Search"))",
success: function (data) {
// How to add the "data" object items in to the combo box here.
},
});
}
関数(データ)内のコンボボックスにアイテム(オブジェクト)を追加する方法。ありがとう。
編集:これはTelerikコンボボックスHtml.Telerik()。ComboBox().Name( "cmbGender")です。