简体   繁体   中英

How to make an item non-clickable(item will be visible) in KendoDropDownList

var items = [ { Id: 0, Title: "Manager" }, { Id: 1, Title: "Developer" }, { Id: 2, Title:      "Vice President" } ];

$("#dropdownlist").kendoDropDownList({
dataSource: items,
dataTextField: "Title",
dataValueField: "Id"
});

Now i Want 0th item("Manager") non clickable.This item will be visible though.

Any Help?

#dropdownlist :first-child{
    pointer-events: none;
}

_

element.onclick = function(event){
    event.stopPropagation();
    return false;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM