Questions tagged [disabled-control]

322 questions
3
votes
1 answer

How to listen to when an element becomes disabled or enabled

I'm looking to make changes on nearby elements when an input or fieldset is disabled. Is there an event that listens to when an element is enabled or disabled? For example: var input = document.createElement('input') I'm looking for an event that…
ryanve
  • 50,076
  • 30
  • 102
  • 137
3
votes
1 answer

Disable and change color of node in Treeview

I am looking for the way of disabling proper nodes. Let's say I have created simple treeview structure like below: Parent 1 (disable) Parent 2 Child 1 Child 2 (disable) So far I have found workaround how to do that, but it still doesn't work…
astack
  • 161
  • 4
  • 16
3
votes
1 answer

All control's properties disabled in Visual Studio

I have a parent form and a child form that inherits from the former. In design mode all the inherited controls' properties are disabled. How can I change these properties in the child form? Here is a screenshot of the designer. Note how I have…
3
votes
3 answers

How to disable or enable a bootstrap submit button if checked checkbox

I need to enable or disable a bootstrap submit button on a form if a checkbox is cheched or not echo "
OBSERVACIONES
"; echo "
"; echo…
osbragon
  • 103
  • 2
  • 2
  • 8
3
votes
2 answers

Actual text color on disabled button

VB2012: I am creating a button control and inheriting from the .NET button. Taking the base from here https://blogs.msdn.microsoft.com/jfoscoding/2005/11/10/building-a-splitbutton/ Since I am repainting the button I have to introduce some code to…
sinDizzy
  • 1,300
  • 7
  • 28
  • 60
3
votes
1 answer

How to disable anonymous access to MongoDB 3.0.x in linux

we are using centos 7 , mongodb 3.0.8 Im trying to disable anonymous access to mongodb. Place auth = true in /etc/mongod.conf disabling anonymous access in version 2.x but in version 3 when i place the same , the server it self not starting When i…
user5628973
  • 311
  • 1
  • 3
  • 5
3
votes
4 answers

How do I disable or hide jQuery UI spinner buttons without disabling widget?

I originally was using the option to disable the spinner widget, but I don't want to use that, because it causes the value of the widget to be lost when the form is submitted. What I am looking for is to set the widget to readOnly. When I set it to…
David Whiteman
  • 110
  • 1
  • 10
3
votes
2 answers

Handle click event or MouseDown in a disabled WPF StackPanel

It's been a while I'm trying to do something like that and I am about throwing a NotImplementedException now... I mean, throwing in the towel. You are my last hope. So, there is my goal: Enabling a StackPanel when the user has clicked on it for…
Marc
  • 392
  • 1
  • 3
  • 11
3
votes
1 answer

disabled dropdownlist does not keep selected value on postback

I'm getting a weird behavior with a dropdownlist when I trigger a postback. If the dropdownlist is enabled, the selected value remains the same after a postback. However, if the dropdownlist is disabled (via a javascript when user ticks a checkbox),…
Sam
  • 13,934
  • 26
  • 108
  • 194
3
votes
1 answer

How to stop a JButton going gray when disabled?

I have to write a card game. When a card is clicked a random card image is generated but because you can only click on the card once, the button is set to be disabled after clicked. How can I stop the card image from going gray once it's clicked so…
user1823262
  • 31
  • 1
  • 2
3
votes
1 answer

jQuery tabs: disable first tab, select second

I'm using jQuery tabs to create a tab bar with four tabs. After the tabs are initialized, when a certain link is clicked, I want to disable the first tab and select the second tab. I can successfully disable the second tab and select the first like…
daGUY
  • 27,055
  • 29
  • 75
  • 119
2
votes
2 answers

How to get disabled checkbox in form.value

I am adding multiple check box in my form and while adding the control into form, for some check box I have set disable attribute value as true. this.myform.addControl('checkBox1'), new FormControl({ value: true, disabled: true, …
2
votes
1 answer

make disabled button trigger onClick event in react

I have a save button at the bottom of a react form. That button is like this: The disabled value is true whenever there is validation errors on the form, such as not…
RobKohr
  • 6,611
  • 7
  • 48
  • 69
2
votes
2 answers

innosetup - capturing events from wizard page controls

I have seen answers for capturing events from user-created controls on wizard pages, but how do you do it for controls created as a result of a call to CreateInputOptionPage? For example: InputOptionPage := CreateInputOptionPage (wpWelcome, …
rossmcm
  • 5,493
  • 10
  • 55
  • 118
2
votes
1 answer

Text color of selected item in SwiftUI Picker

When using a Picker on a Form in SwiftUI, if the Picker is disabled, the selected item's text is light gray. It appears a little too light for readability. How can this be changed? There is no font-colour option, especially for disabled state,…
Justin Ngan
  • 1,050
  • 12
  • 20