Questions tagged [ischecked]

78 questions
0
votes
1 answer

Getting NullPointerException on isChecked() for a checkbox in DialogFragment

I have a checkbox in a login DialogFragment that I want to use to check to see if I should add the entered user name to the preferences. But when I do an if using the checkbox's isChecked() method I get a NullPointerException. I added a try/catch…
0
votes
1 answer

recalculate MenuItem.IsChecked

I have a ContextMenu on a DataGrid and I want to mark a MenuItem as checked or unchecked depending on the item in the grid which is right-clicked. So, I bind the 'IsChecked' property on the MenuItem to a property on my ViewModel, and this property…
0
votes
1 answer

radiobutton not showing correct checked id

i have to check simentaneously one one radiobutton and see the value of timeone if ab1 is clicked through toast.. , how can i see it .. i am using is "rab"+number of radiobutton.ischecked() method. is it ok or anyother method should be used ? public…
Adi
  • 903
  • 2
  • 15
  • 25
0
votes
1 answer

Getting unexpected behavior when examining the IsChecked property of a Checkbox

We have 6 CheckBoxes on a user control. We want to be able to determine, whether or not each of the 6 boxes are checked. We tried doing this in this event in the code behind: private const short Black = 1; private const short White = 32; private…
Rod
  • 4,107
  • 12
  • 57
  • 81
0
votes
1 answer

Jellybean upgrade - setOnItemClickListener called after itemchecked

I am trying to capture the click on my listview, which contains a checkedtextview my code is as follows listview.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() { public void onItemClick(AdapterView parent,…
0
votes
0 answers

How to tie RelayCommand to IsChecked property?

So far, I had to rely on code behind event to check or uncheck the buttons (e.g. Bold font toolbar button), and I wonder if there is a better and cleaner way to do it using RelayCommand because it is already binding to a RelayCommand for Execute and…
newman
  • 6,841
  • 21
  • 79
  • 126
0
votes
1 answer

need to display some edittext fields if user is checked on checkbox otherwise not to display it

i have to develop one registration form android app.here i have to enter the edittext field is automatically save in mysql database via soap webservices calling. Here i have to follow my additional requirement is The shipping and biling address is…
android
  • 89
  • 3
  • 12
0
votes
2 answers

How to check if the previous checkbox is checked in a jquery each function

I have this table which can be very large, it contains single rows which can be selected with a tick box on the left or they can contain groups which contain their own individual rows where the group can be selected on its own to select all the…
Ben
  • 2,388
  • 4
  • 18
  • 16
0
votes
1 answer

CheckBox in ListView setonclicklistener not working properly

I have a ListView with CheckBox and a TextView . In my adapters getView() method I implemented this listener on checkbox. holder.check.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { …
Ashwani
  • 1,574
  • 14
  • 28
0
votes
2 answers

RadioButton IsChecked binding in View Model

I know this topic has been discussed many times, but I still cannot get it work. I have 3 RadioButtons that are put in a StackPanel; I am trying to bind their IsChecked to some variable in View Model. Here is what I did: in XAML file in View: …
Nick Tsui
  • 524
  • 2
  • 9
  • 29
0
votes
1 answer

Can not get the result of RadioButton onchecked() in Android

I can't get values to return. Application force closes on Agree button click. I can't get the values back from i_am.isChecked() for all other radio buttons. protected void onCreate(Bundle savedInstanceState) { final RadioButton…
ashish.n
  • 1,234
  • 14
  • 30
-1
votes
1 answer

The CheckedTextViews in my ListView tick and untick themselves

I've spent the past 3 hours trying to make this work, so sorry if I forget to post something... Here's the problem: I'm using a ListView, which has a custom BuddyArrayAdapter which inflates an XML containing a side-by-side image and a…
Shark
  • 6,513
  • 3
  • 28
  • 50
-1
votes
2 answers

checking to see if Checkbox is checked is being skipped during execution

I've been racking my brain around this for hours and haven't gotten anywhere. I have a simple form that I will be submitting to a database, after validation and vetting of course. However, I'm hung up with retrieving the state of the checkbox that…
-1
votes
2 answers

isChecked function is not working for radio button in android

Below is my activity_main.xml code
-1
votes
5 answers

How can I elegantize this verbose jquery?

I need to get the value of the checked checkbox (only one is allowed to be checked at a time), and I have this verbose code to do so: if (!checkboxSelected) { return; } if($("#ckbx_produceusage").is(':checked')) { rptval =…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862