checkbox

How to read the checkbox value in RowHeaderTemplate?

<my:DataGrid.RowHeaderTemplate> <DataTemplate> <Grid> <CheckBox Name="dgChkSelect" Checked="dgChkSelect_Checked" Unchecked="dgChkSelect_Unchecked" Tag="{Binding}" /> <!--IsChecked="{Binding Path=IsSelected,Mode=TwoWay,Rel...

cannot return datable

public DataTable ExcelToDatatable_dt1 { get { foreach (GridViewRow rowItem in GridView1.Rows) { CheckBox chk; // gets the Debit Reference number for each row checked string productId = GridView1.DataKeys[rowItem.RowIndex].Value....

android contact picker with checkboxes

hello guys! i'm using the default way to call the contact picker. public void showContactPicker(View view) { Intent newIntent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI); startActivityForResult(newIntent, 1); } but i need to select multiple contacts using checkboxes. how can i put checkboxes in the contacts list? i...

How do I make a CheckBox look like a RadioButton

I wanna use a CheckBox but I want it to have the RadioButton chrome. What's the easiest way to do this? ...

Checkbox and input field value

I have a check box which will change the value of a textfield to 1 when checked and change it back to zero when unchecked, how can I do this? I want it in javascript. ...

Flex4: Combo Box with CheckBox Inside.

Hi, Apologies for all the simple questions but they are born of my sudden and unplanned migration from flex 3 to flex 4. Ok I have a combo box which I would like to show a list of selectable check boxes. <s:ComboBox x="181" y="-7" width="233" id="dropISLIST" itemRenderer="IsListFilterCheckBox" dataProvider="{GetIsList.lastResult.Rep...

dojox - Datagrid with Checkbox -> onSet / trigger save JsonRestStore

Hi all, i have a datagrid (created programmatically) wich is connected to an JsonRestStore. In that Grid there are some columns rendered as checkboxes (type:dojox.grid.cells.Bool) Everything works fine, displaying Data and so on. To be able to edit inline, i connected the onApplyEdit to store.save. The Problem is, that the change of the...

Checkbox commanding, check - OK, Uncheck NOT ok, how do i bind the uncheck command?

Hi, I'm having problems attaching an uncheck command to a checkbox. Or more correct, I do not know how to code it. Here's my code for the check command, how should it look to get uncheck also working? View: <CheckBox commands:Checked.Command="{Binding CheckCommand}" IsChecked="False"></CheckBox> ViewModel: Private _CheckCommand As D...

SL ItemsControl, command on ViewModel not firing from ItemsControl (CheckBox)

Hi, I'm using PRISM v2, CAL, SL4 and MVVM and have a delegate command on my ViewModel called CheckCommand. The ItemsControl contains a checkbox and I'm trying to get the items in ItemsControl/Checkbox to fire this command when it's checked - but it's not communication back to the viewmodel! I think it's because each items 'datacontext' ...

jquery check all checkboxes and add class to rows?

hi all, I am trying to add a class to my tr rows if the select all checkbox has been selected, but I can't seem to get the add class to work (and then obviously remove them if check all has been deselected), I am using toggle on each individual row to add/remove the class, but can't seem to get it working for the check all. Here's my ta...

jstree checkbox plugin error

I have a jstree with checkboxes that shows up just fine. I can open and close the nodes, check and uncheck the checkboxes, etc. The problem comes in when I try to get all the nodes that have been checked. Below I list all the ways I have tried, along with the error messages I get when I try each one. $.tree.plugin.checkbox.get_checked(...

show html checkbox as neither checked or non-checked

I have an html checkbox that controls a list of checkboxes. I want this checkbox to display in a sorta "null" state where it is neither true nor false. Is this possible? <HeaderTemplate> <div style="width:90px"> Toggle: <input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server" type="...

JQuery ThemeRoller custom theme further customisation

I have created a custom theme with ThemeRoller. I would now like to customise the checkboxes so that their active state is a different colour to the 'clickable: active state' which was chosen in the ThemeRoller. Despite trawling the various css files provided by the custom theme, I cannot for the life of me work out how to do this. I can...

Want checkbox values out of while() dynamic list results - Need php code logic

I have a working dynamic image and text list page that shows results in table form. I've added check boxes (name = "select") to each item in the list results with the (relevant) code below. I want to filter the corresponding art_id's from just the ones with select ="1" echo "<tr align=\"left\" padding=\"1\"> <td align=\...

The right way to specify genre check box for the webrat example in PragProg RSpec book?

This question is regarding the html form in RSpec book (beta version b15_0), page: 301. The best way I could figure for that problem is this: <p> <%= f.label :genres %><br /> <%- @genres.each do |genre| %> <%= check_box_tag(genre.name, genre.id) %> <%= label_tag(genre.name) %><br /> <%- end %> </p> This forces me to chec...

JSF: How to bind many of h:selectBooleanCheckbox ?

I have a problem to bind list of h:selectBooleanCheckbox to my bean. Anybody helps ? This is not working: <ui:repeat value="#{cartBean.productsList}" var="cartProduct" varStatus="i"> <h:selectBooleanCheckbox binding="#{cartBean.checkboxes[i.index]}" /> </ui:repeat> public class CartBean extends BaseBean { public List<Product> get...

PRISM-MVVM, ItemsControl problem with View injection

Hi, I need to display multiple instances of a basketDetailsView.xaml within a region placed in basketView.xaml, but I'm getting the following errormessage when i debug my code: "An exception occurred while creating a region with name 'basketRegion'. The exception was: System.InvalidOperationException: ItemsControl's ItemsSource propert...

Flex 3: TextInput as ItemRenderer for CheckBox in ComboBox?

I need to create a Flex component similar to ComboCheck (by Arcadio Carballares). What I need is a ComboBox with CheckBox and TextInput instead of Checkbox's label. If CheckBox is selected the TextInput is enabled and editable, other way it's disabled. Do you have an idea of the easiest way to achieve it? ...

Inserting Selected Row onto SQL Server Database from GridView

protected void Authorise(object sender, EventArgs e) { CheckBox chk; foreach (GridViewRow rowItem in GridView1.Rows) { // gets the Debit Reference number for each row checked string type = GridView1.DataKeys[rowItem.RowIndex].Values[0].ToString(); // gets the Debit E...

check whether checkbox is checked or not using jquery

Hi there, I want to check whether checkbox is checked or not using jquery. I want to check it on checkbox's onclick event. <input type="checkbox" onclick="javascript:check_action();" id="Public(Web)" checked="checked" value="anyone" name="data[anyone]"> Is it possible? How? Thanks. ...