FAQ Database Discussion Community


Why do Font-Size and CssClass properties are not working in CheckBoxList in aspx page?

css,asp.net,fonts,font-size,checkboxlist
I want to increase the font size of checkboxlist values so I added Font-Size = "large" property inside <asp:CheckBoxList> but it's not working. <form id="form1" runat="server"> <table> <tr> <td style="padding-left:50px;padding-top:20px"> <asp:CheckBoxList runat="server" ID="ChkList" RepeatColumns="4" repeatLayout="Table" RepeatDirection="Horizontal" Font-Size="Large"></asp:CheckBoxList> </td> </tr> <tr> <td style="padding-left:50px; padding-top:10px;"> <asp:Button...

CheckBoxList for many-to-many relationship in ASP.NET MVC

c#,asp.net-mvc,razor,html-helper,checkboxlist
I am trying to implement a check box list in MVC for a many-to-many relationship (Article - Category). I have tried this, but I does not work. Does anybody know a different and properly approach to get it. In the domain model: public class Article { public int Id {...

Disable specific items in a CheckboxList

c#,asp.net,checkboxlist
I am running through a set of data, which will populate a CheckBoxList. I want to display all the items in the list but certain ones will be disabled as they don't qualify (their status equals Inactive). How do I set an item to disabled (Enabled = false) in the...

Utilising Yii2.0 checkboxlist for Parent-child relation models

yii2,checkboxlist
i have a Questions model and Answers model in which Question to Answer is one-many relation. How do i implement checkboxlist in Yii2 so that it will display in a form as follows: Form: Question 1 description [checkbox] Answer 1 description [checkbox] Answer 2 description Question 2 Description [checkbox] Answer...

Get ValueMembers of a CheckBoxList

c#,winforms,linq,checkboxlist
I have a linq Query that I have bound to a Checkbox list using Windows forms var webresourcesFromCRM = from w in orgSvcContext.CreateQuery("webresource") select new { webresourceid = w["webresourceid"], name = w["name"] }; I have used the DisplayMember and ValueMember properties when binding cblWebResources.DataSource = webresourcesFromCRM; cblWebResources.DisplayMember = "name"; cblWebResources.ValueMember...

How to add checkboxes to a JTable which uses a model with values from a database?

java,swing,checkbox,jtable,checkboxlist
I have a model(AbstracTableModel) which I use to build a JTable. The thing is that the table cell values seen in the GUI are displayed from a database. How can I add a new column with checboxes for each row of the table? Is there a concrete answer to this?...

How to link code for button function to checkboxlist in C#?

c#,button,methods,checkboxlist,asp.net-4.5
I would like to link the function of my Chart Output Button to the items in my check box list such that when an item in the check box is selected or deselected, the page is reloaded again and my chart is refreshed. My codes to refresh the chart have...

MVC 5 Identity. Roles for User

c#,asp.net-mvc-5,checkboxlist
I need to display set of checkboxes to being able to manage user roles. I can give to my view all of existing roles: var roleManager = new RoleManager<IdentityRole>(new RoleStore<IdentityRole>(new MlmDbContext())); ViewBag.allRoles = roleManager.Roles.ToList(); And I can get roles for user into the view : @{ foreach (var role in...

Checkboxlist boxes won't appear checked on Update page

php,checkbox,yii2,checkboxlist
I have a checkboxlist on both create and update views: <?php echo $form->field($model3, 'options[]')->checkboxList(['CPF' => 'CPF', 'FWL' => 'FWL', 'SDL' => 'SDL', 'CDAC' => 'CDAC']); ?> Then I used this code to save the checkboxlist checked boxes as strings: $model3->options = implode(',', $model3->options); Upon updating, I used this code to...

Align check boxes in checkboxlist

css,asp.net,checkboxlist
I know this type of question has already been asked, but I can't seem to find an answer that satisfy me need. As you can see from the image, I have 2 issues: "Italy" is not aligned with "Germany" The countries are listed in 2 columns, although there is room...