Questions tagged [ischecked]
78 questions
                    
                    96
                    
            votes
                
                13 answers
            
        jQuery, checkboxes and .is(":checked")
When I bind a function to a checkbox element like:
$("#myCheckbox").click( function() {
    alert($(this).is(":checked"));
});
The checkbox changes its checked attribute before the event is triggered, this is the normal behavior, and gives an…
        
        Ben
        
- 16,275
 - 9
 - 45
 - 63
 
                    9
                    
            votes
                
                2 answers
            
        WPF click on label change checkbox isChecked property
I’m new to WPF and try (in my opinion) an easy task but I didn’t get it. Even Google won’t help me, or I asked the wrong question.
I have a checkbox and a label; I wish that a click on the label change the isChecked property of the checkbox. 
I want…
        
        sandkasten
        
- 603
 - 1
 - 8
 - 21
 
                    7
                    
            votes
                
                1 answer
            
        WPF MenuItem IsChecked Binding not working
Anyone know why the menu item binding does not work ?
    
         
     
… 
        
        Kaya
        
- 515
 - 2
 - 7
 - 19
 
                    5
                    
            votes
                
                3 answers
            
        Why won't IsChecked change on this toggle button?
I have the following xaml for a toggle button:
            
            
                
                    
    
    
        
    
    
                
            
         
    
        cjroebuck
        
- 2,273
 - 4
 - 30
 - 46
 
                    5
                    
            votes
                
                2 answers
            
        WPF - Radio button control template binding "IsChecked" not working
I have a control template like below, and I want to get IsChecked property when user selects a radio button. 
But when user select radio button "A" it's IsChecked property still show false. Why?
        
            
            
                
                    
    
    
        
    
    
                
            
        
     
        David Shen
        
- 75
 - 1
 - 5
 
                    4
                    
            votes
                
                1 answer
            
        Binding checked menu items to ViewModel commands
I have in XAML 3 menu items defined (using WPF-MDI):
                    4
                    
            votes
                
                4 answers
            
        how can I verify if multiple checkboxes are checked
std::string output; 
if ((checkbox1->isChecked() && checkbox2->isChecked()) && 
   (!checkbox3->isChecked() || !checkbox4->isChecked() || !checkbox5->isChecked() || !checkbox6->isChecked()))
{
  output = " Using Checkbox: 1, 2 ";
}
if…
        user3480913
                    3
                    
            votes
                
                1 answer
            
        Javascript / Toggle / Switch / clearInterval() - not able to clearInterval() when the toggle is switched off
wow, this is my first post! New to programming and coding, this is something of my first projects I work on. I would like to be able to switch a toggle to run a code or to stop it, using the setInterval() for it. But now I am not able to switch it…
        
        Laurens
        
- 33
 - 3
 
                    3
                    
            votes
                
                2 answers
            
        WPF ToggleButton binding IsChecked when disabled
This is a bit of a wierd problem.  (.NET 3.5sp1)
I have a UserControl containing three ToggleButtons, each with IsChecked bound to different dependency properties on the UserControl itself.  Two of these default to true, one defaults to false.
On…
        
        Miral
        
- 12,637
 - 4
 - 53
 - 93
 
                    2
                    
            votes
                
                5 answers
            
        How to get the IsChecked property of a WinForm control?
Can't find the answer to a seemingly easy question. I need to iterate through the controls on a form, and if a control is a CheckBox, and is checked, certain things should be done. Something like this
foreach (Control c in this.Controls)
        {
 …
        
        tube-builder
        
- 686
 - 1
 - 13
 - 29
 
                    2
                    
            votes
                
                1 answer
            
        isChecked() returns true though the switch is not checked
I have used a switch to set the notifications. I want to save the notifications if the switch is checked i.e. notification is on. 
But if I on the switch and again off the switch and save the event. Then also the notification is getting set. 
As I…
        
        user5881997
        
- 219
 - 2
 - 19
 
                    2
                    
            votes
                
                1 answer
            
        Android ToggleButton toggle state issue
I am new to android. I am creating a app which uses a toggle button. I want the toggle button to do some tasks when the button is in checked state and do some another tasks when the button is unchecked. And I want the toggle button to retain its…
        
        shinilms
        
- 1,494
 - 3
 - 22
 - 35
 
                    2
                    
            votes
                
                1 answer
            
        How to set radio.IsChecked = true; to a particular radiobutton programatically using c#
I am working on silverlight and i have created a radiobutton i want to set manually the check of radiobutton programatically to the given 3 items (itms means 3 radiobutton) on radio button.I tried like this
RadioButton radio = new…
        
        Sss
        
- 1,519
 - 8
 - 37
 - 67
 
                    2
                    
            votes
                
                1 answer
            
        WPF CheckBox's IsChecked property doesn't match binding source's value
In my WPF application I have a CheckBox whose IsChecked value is bound to a property in my viewmodel. Notice that I have commented out the actual line which sets the value in my viewmodel. It's the standard pattern:
View.xaml
        
            
            
                
                    
    
    
        
    
    
                
            
        
     
        sourcenouveau
        
- 29,356
 - 35
 - 146
 - 243
 
                    1
                    
            vote
                
                2 answers
            
        Android Development - isChecked Checkbox using simple_list_item_multiple_choice and CHOICE_MODE_MULTIPLE
I am using simple_list_item_multiple_choice with list.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); to create a list of check boxes populated from a database query.  I am then using onListItemClick to handle the clicking of the list, again that is…
        
        user985869
        
- 93
 - 1
 - 8