Xóa bài viết
Bạn có chắc chắn muốn xóa bài viết này không ?
Xóa bình luận
Bạn có chắc chắn muốn xóa bình luận này không ?
Kendo DropdownList: Get Id of Selected Item
<div class="col-sm-8"><input class="form-control" id="inpParentName" /></div>
$("#inpParentName").kendoDropDownList({
dataTextField: "name",
dataValueField: "id",
optionLabel: 'Choose...',
dataSource: {
transport: {
read: {
type: "GET",
dataType: "json",
url: "/Manager/Asset/GetAllProducer",
}
}
},
change: onChange
});
var ParentId = $("#inpParentName").val() =='Choose...'? null: $("#inpParentName").data('kendoDropDownList').dataSource.get($("#inpParentName").val()).id;
Bình luận

{{ comment.user.name }}
Bỏ hay
Hay

Cùng một tác giả

2
0
HTML: HTML Date: Time: JS: JavaScript $("datepicker").mask("99999999"); $("timeStartPicker").mask("99:99:99"); Trong đó:

1
0
function process() { getMD5( document.getElementById("myfileinput").files0], prog = console.log("Progress: " + prog) ).then( res = consol...

1
0
Chỉnh CSS: CSS .GridNoHeaderOfYou .kgridheader { height: 0; borderbottomwidth: 0; display: none; overflow: hidden; }
Bài viết liên quan

0
5
fCC: Technical Documentation Page note So I have finished the HTML part of this exercise and I want to come here to lament about the lengthy HTML ...

4
0
I used Spring boot, Hibernate few times back then at University, I'v started using it again recently. In this (Link), I want to check how Spring J...