checkbox

DataGridCheckBoxColumn immediate binding

Hi. I'm using the WPF Toolkit Datagrid and have one column which is a DataGridCheckBoxColumn bound to a bool property on my ViewModel. My problem is that I wan't the property to get it's value updated immediately when the user checks or unchecks the checkbox. Now you have to navigate away from the cell in order to have the property up...

how to add a checkbox in a listview?

hello guys, i have a question, been stuck for a while, i dont know how can i add a checkbox in the list, for example if I have a list of items i want to be able to check them. my xml code is the following: <LinearLayout android:id="@+id/topLayout" android:orientation="vertical" android:layout_width="fill_parent" android:la...

How do you manipulate form values based off local input?

I have a form that has a series of check boxes and some line items have a text input next to them that defines quantity of the item. <input type="checkbox" name="measure[][input]" value="<?=$item->id?>"> <input class="item_mult" type="text" name="measure[][input]" /> What is the best way to capture the integer from the input field a...

dynamic check_box using field_for in rails

I have a many-to-many relationship with a link box, and I want to pull those models together into one form so I can update from the same page. I'm really struggling with getting the check_box to even show all the elements of my array - I've scoured the net and been working on this literally all day, and I'm finding it difficult to apply ...

I have to select the checkbox two times to check/uncheck in jTable

I have a jTable code i intend to use, but the problem with it is that when i click on the checkbox once it doesn't select/deselect it, instead i have to click twice. But if i select any other cell in the row except the one containing the checkbox the purpose is solved. HERE IS MY CODE : public class TableSelectionTest extends JFrame im...

CheckBox menu item Decrypt in JAVA GUI

I am working on a project and part of ask for: add a CheckBox menu item Decrypt which can be checked for decrypt or unchecked for Encrypt. This item should be tied to the toggle button in the GUI. Both should reflect the current status of encrypting/decrypting in the application which is I not sure how to begin with ...

IE not detecting jquery change method for checkbox

The code below works in FF, Safari, Chrome. But IE is giving me issues. When a checkbox is checked, I cannot get IE to detect it. $("#checkbox_ID").change(function(){ if($('#'+$(this).attr("id")).is(':checked')) { var value = "1"; } else { var value = "0"; } alert(value); return false; });...

activate and deactivate ComboBox

How can I make the comboBox available when the checkBox was uncheck (vice versa) Why the comboBox is still disable after I unChecked the checkBox? choice [] = {"A","B","C"}; JComboBox a = new JComboBox(choice); JCheckBox chk = new JCheckBox("choice"); ... a.addActionListener(this); chk.addActionListener(this); ... public void actio...

WPF datagrid bind to previous row's cell

Hi, I have a datagrid and one of the columns is going to be a checkbox column. To give the background, the checkbox is going to turn something on / off and each row in the datagrid is going to be for a differernt time (in time order, ascending). Is it possible for one row's checkbox to be bound to the state of the previous row? That wa...

RadioButton not checked when posted

I have created a custom RadioButton control, because I needed to set additional values in to it. But regardless of whether the UI shows the control as checked or not the control does not have a True property for checked. The outer repeater iterates through Qualifications, which contain a List of Subjects. The subjects are iterated throu...

In Flex, how do I create a CheckBox that can't be un-checked?

In Flex, how do I create a CheckBox that can't be un-checked? I run a function when the checkbox is clicked. If that function encounters an error, I want the state of the checkbox to remain the same. How do I do that? ...

Issue with jQuery setting checkboxes as checked in IE6 (not showing as checked?)

The Code: var lstInstanceIds = getData.lstInstanceIds.split(','); for(var i=0; i<lstInstanceIds.length; i++) { var value = lstInstanceIds[i]; $('input[value=' + value + ']').attr('checked','checked'); } So all i'm doing is looping a list and setting the attribute checked as checked where the values meet. This ...

how to update mysql with inputs and checkboxes

hi. with this code: <? if (isset($_POST['onay'])) { foreach ($_POST['secilen'] as $zuha) { $olay = mysql_query("update mp3 SET aktif = '1' WHERE id = '$zuha'"); } if ($olay) { echo "islem tamam"; exit; } } ?> and with this form: (select * from mp3 aktif = '0') <form name="form" method="post"> <input readonly type="text" ...

iPhone checklist app

I am trying to create a simple app that displays a list of items with check boxes next to each item, then give the user to simply check each box. Nothing (aside from the checkbox image switching) needs to happen when the check box is touched. Each checklist is a seperate NSDictionary contained in a single master NSDictionary. The checkl...

How to disable TextBox on client-side click on CheckBox

How to disable asp:TextBox on client-side click on HTML checkbox or server-side asp:CheckBox using JavaScript? <script type="text/javascript" language="javascript"> function enableTextbox() { // ? } </script> <table> <tr> <td> <input id="checkTake" onclick="enableTextbox" title="Take?" /> ...

Checkbox 'Checked' in ListView is restored after scrolling

I'm having the following problem: I have a ListActivity, its ListView is composed by an icon, text and a checkbox (using LayoutInflater). The Adapter for the ListView extends ResourceCursorAdapter (i.e. the data source of the ListView is retrieved from a database, also the Checked status of each row) Everything works pretty Ok, exc...

html checkbox with an 'x' instead of the traditional tick

is it possible display a 'x' for an html checkbox when we click on it. Traditionally on ie, (on winxp and greater) it appears as a 'tick' mark. Can we change this? Or else what is the alternative to this in asp.net ...

Checkbox control in Asp.Net

I'm trying to capture a person's current and permanent address. If the current and permanent address are the same, it means there is no need to enter the same information twice. I'm using a checkbox to indicate that the addresses are the same. If the checkbox gets checked, I would like to put the current address into the permanent ad...

Jquery Validation Plugin - Require 2 checkboxes

I have a group of 12 checkboxes, all with the same name (name="4_RepPeriods"). I am using the Jquery validation plugin and i want the user to select no more or less than two of these check boxes. If possible I also want the other check boxes to become deactivated (unclickable) after two have been selected. I appreciate the help! Thanks...

vb.net designing questions

i have created a dynamic table through vb.net, so htmltable, htmltablerow, htmltablecell. I have added all style and properties in there. so eg. dim td as htmltablecell td.style.add("width","100px") td.style.add("color","blue") now what i want to do is add the tag to each row. this is because the first td of every row is a checkbox. ...