Domanda

I have several telerik radcomboboxes inside a div with various id's. I want to find all of them and disable them without using those id's like say finding the tag name using javascript. Please help

È stato utile?

Soluzione

Each RadControl renders a specific CSS class identifying the type of the control on the control container element. Additionally the JS object is an expando of the container element - control.

So, you can use this: $('.common-container-class-name .RadComboBox').each(function() { this.control.disable(); });

Altri suggerimenti

Not sure what a Rad Combo Box is but it seems like different types of input / text elements so try:

$('.someContainerDiv input').attr('disabled','disabled');

Change input for whatever the element is, like the <textarea> tag.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top