Hi,
I need to know how to disable / not allow user to click on WebDropDown textbox, they only can select the item from the item list, the textbox of webdropdown should be "readonly"
FYI,these are the property for the webdropdown: EnableMultipleSelection ="true", EnableCustomValues="false" EnableCustomValueSelection="false" EnableAutoCompleteFirstMatch="false" DisplayMode="DropDownList"
These only prevent user to key in, but cant prevent user to select the webdropdown.
Hi syne,
If you have any further questions please feel free to contact me.
A possible solution would be to use the following function for Initialize client-side event:
function initDropDown(sender, args) { $(sender.get_element()).find('input.igdd_ValueDisplay').on('focus', function () { this.blur(); });}
However, under IE the cursor will still be displayed for a second before disappearing.
Thanks Nikolay!
Is there any way to make cursor at IE and Firefox disappear too?
Hello syne,
Thank you for posting in our forum.
Using these settings will apply a readonly attribute to the input element, rendered on the page. And it depends on the browser if a cursor will be shown in the textbox when the user click on it. Under IE and Firefox the cursor appears and under Chrome and Safari - it doesn't.
Please let me know if you have any other questions.