checkbox

How to disable an AngularJs filter when checkboxes are false (disabled)?

你离开我真会死。 提交于 2019-12-14 03:15:34
问题 I have a question about how to disable a AngularJS filter related to checkboxes. I have a classic construction: The object: $scope.wines = [ { "name": "Wine a", "type": "red", "country": "france", "style": "strong" }, { "name": "Wine a", "type": "white", "country": "italie", "style": "medium" }, { "name": "Wine a", "type": "white", "country": "france", "style": "light" }, { "name": "Wine a", "type": "rose", "country": "usa", "style": "strong" }, { "name": "Wine a", "type": "champagne",

Disable and grey out a check box of treenode

删除回忆录丶 提交于 2019-12-14 03:09:29
问题 I need to create a treeview that some nodes in the tree will have checkbox and other nodes will have a disable checkbox - that looks gray as disable. once the user check the disable check box the check box image will be changed to a different image (-checked but still grey). this treeview will have also icon , besides the check box. (I'm using the winform treeview control) thanks in advance, 回答1: You can set the ShowCheckBox property of the node to False, and the ImageUrl to a picture of a

Populating a listview with checkboxes from a XAML file

偶尔善良 提交于 2019-12-14 03:01:17
问题 I've got a listview that looks like this (except a Load button has been added since this screen shot was taken): Listview image Here's the XAML code: <Window.Resources> <DataTemplate x:Key="YoungPicCell"> <StackPanel Orientation="Horizontal"> <Image Height="200" Width="200" Stretch="None" Source="{Binding YoungPic}" /> </StackPanel> </DataTemplate> <DataTemplate x:Key="MediumPicCell"> <StackPanel Orientation="Horizontal"> <Image Height="200" Width="200" Stretch="None" Source="{Binding

How to set up groups of checkboxes which affect each other

ⅰ亾dé卋堺 提交于 2019-12-14 02:55:56
问题 Sorry for the ambiguous title, but it's quite hard to condense what I'm trying to do into a few words. Here's exactly what I'm trying to do: I want to have a series of groups of checkboxes. One would be gender, with checkboxes for Male and Female, one would be Region, with checkboxes for North, East, South and West and so on. The aim is to allow the user to select say, Male or Female, but as soon as they put a check in a checkbox of another group e.g. any of the Region checkboxes, all of

How to redirect to a particular link if checkbox is checked using javascript?

你离开我真会死。 提交于 2019-12-14 00:34:45
问题 How to redirect to a particular link if checkbox is checked using javascript? I am doing this but its not working for me.. <input type="checkbox" name="yousendit" id="yousendit" value="1" onselect="return yousendit();"/> <script type=javascript> function yousendit() { if(document.getElementById('yousendit').checked== "checked") { window.location='https://www.yousendit.com/dropbox?dropbox=mydomain'; return false; } return true; } </script> Please help 回答1: There are some problems with your

javascript to create multiple checkboxes in for statement

大城市里の小女人 提交于 2019-12-13 22:30:41
问题 Hi I am trying to create a bunch of checkboxes without having to make each one currently I have: function test(obj) { if (document.getElementByID("info").checked == true) { document.getElementById("gender")[0].disabled = true; } } and it works for one checkbox but I have been trying to use the code below: function test(obj) { var x = obj.name; var rowCount = $('#List tr').length; for (var i = 0; i rowCount-1; i++) { if (x == document.getElementByID("info"["+i+"]).checked == true) { document

jQuery checkbox disable/enable secondary inputs based on checkbox value

梦想与她 提交于 2019-12-13 21:20:01
问题 I have a form (it's a WordPress plugin, Contact 7, fyi) that uses an exclusive checkbox. There are two checkbox choices, yes and no. If they check yes, I have a text field that I am enabling (I have disabled it by default). If they check no, I have a second exclusive checkbox with 2 boxes that I am enabling (also by default). As you can surmise, when the user selects yes, it also should disable the second checkbox. And if they choose no, I want the text field to return to disabled state. So I

how to bind a value of datasource to a checkbox in datalist with Eval()

折月煮酒 提交于 2019-12-13 21:08:38
问题 I have a datalist in my asp.net page. I bind a datasource to it in codebehind and I have a checkbox in this datalist. var n = from gi in DataContext.Context.GalleryImages join g in DataContext.Context.Galleries on gi.GalleryID equals g.GalleryID where g.UserID == UserID && gi.GalleryID==GalleryID select new { GalleryID = g.GalleryID, ImageDescription = gi.ImageDescription, GalleryName = g.GalleryName, ImageFileName = gi.ImageFileName, IsAlbumImage = gi.IsAlbumImage, ImageID=gi.ImageID };

WPF Listview Checkboxcolumn Binding

柔情痞子 提交于 2019-12-13 20:42:55
问题 I'm having trouble binding a Checkboxcolumn to a Listview. What am I doing wrong? XAML-Code: <ListView Name="listViewClients" Grid.Row="1" Margin="0,5,0,10" ScrollViewer.HorizontalScrollBarVisibility="Disabled"> <ListView.Resources> <Style TargetType="{x:Type GridViewColumnHeader}"> <Setter Property="HorizontalContentAlignment" Value="Left" /> </Style> </ListView.Resources> <ListView.View> <GridView> <GridViewColumn Header="Auswahl" Width="50"> <GridViewColumn.CellTemplate> <DataTemplate>

Xpages checkbox group multiple columns?

别说谁变了你拦得住时间么 提交于 2019-12-13 20:05:24
问题 I want to format a checkbox group into 2 or more columns. I have read about a CSS3 solution using display, width, and float. It doesn't appear to work in IE9+. Is there a simple solution to doing this? 回答1: A long while ago I wrote a multi-column component. Hasn't been tested on 9.x, but might work. Have a look at the OpenNTF Project. That might just do the trick. 来源: https://stackoverflow.com/questions/29894907/xpages-checkbox-group-multiple-columns