there is any way to set visible or invisible in the control through javascript?
there is a method set_enabled, but I want to hide the control
I've tried with querySelector in the event onClientLoad
sender._element.querySelector('.RadMultiSelect');
but the resul is null
thanks
1 Answer, 1 is accepted
0
Doncho
Telerik team
answered on 03 Jun 2020, 03:03 PM
Hello,
You need to get a reference to the wrapper element of the rendered by the RadMultiSelect HTML structure and set it a 'display: none' style.
Here is an approach using jQuery you can try:
Use the client OnLoad event listener to get a reference to a certain RadMultiSelect Control and get its respective html wrapper element. Create a jQuery object of the referenced HTML element and use the jQuery .hide()/.show() functions to set its visibility. JavaScript
var $multiSelectWrapper;
functionclientload(sender, args) {
var el = sender.get_element();
$multiSelectWrapper = $(el.parentElement);
}
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.