checkboxlist

Symfony (1.2) multiple checkbox widget

I want understand what the widget can I use to generate such html: <input name="users[]" value="Robert" type="checkbox"> Robert <input name="users[]" value="Bob" type="checkbox"> Bob Or perhaps symfony doesn't have that widget and I have to write it myself? Thanks ...

aspx vb.net checkboxlist to be populated from sql server

can you populate checkboxlist from sql server query like a dropdownlist? with autopostback=true? i am using vb.net and have 50 checkboxes that shall show up from the database data depending on the selected value of the previous dropdownlist. also can i change the label of the checkbox each time the value is from DB? the label shall be sa...

CheckBoxList select all options in jQuery

I have a CheckBoxList and one of the options is 'All'. I want to select all the options including All if the user checked 'All' and if the user unchecked 'All', I want to clear selections. If they select any other option except 'All', do nothing. Can anyone help me with jQuery to do this? I am using jQuery 1.2.6 <table border="0" oncli...

checkboxes in mvc?

hello, can anyone give me a small example in which there are multiple checkboxes and after submitting the data on the edit page the checkbox must be remained checked so that the user will come to know which checkbox he has checked earlier. thanks ritz ...

Replace CheckBoxList TemplateControl with custom UserControl?

I am trying to create a more detailed item template for the standard CheckBoxList control. It exposes an ITemplate property called TemplateControl but I wasn't able to find a straightforward resource on how to actually use it. Here's the code I have so far: Protected Overrides Sub OnLoad(ByVal e As System.EventArgs) MyBase.OnLoad(e)...

Submitting only selected fields as properties in asp.net mvc

I have a view for editing department details. In this view, all employees are listed and user selects which employees work in this department. Is there a way to submit only the selected employees as department.Employees (without using javascript)? public ActionResult(Department department) { Save(department); // department.Employees...

Automatically check items in checkboxlist....

I have a page that would dynamically populate a checkboxlist from database. And there is a gridview with a column that would store selected value of the checkboxlist. So, when a row is selected, the checkboxlist would be checked with the value from gridview. My problem is, if the checkboxlist is not dynamically populated, the checkboxlis...

ASP.MVC 1.0 Checkbox values with ViewModel and for specific ID

All, I've read through a lot of posts about Checkboxes and ASP.MVC but I'm not that much wiser. My scenario: I have a strongly typed View where I pass a collection of summary objects to the view for rendering in a for-each. This summary object contains label data based on a unique id. I also add a checkbox to the row so do so via: <...

Zend Framework: Handling of multiple database records in one form as checkboxes

Hi everyone, I'm new to zend framework but have made my first steps with it successfully. Until now I have created some Zend_Forms which are mapping single records of my model to the form fields. I have handled the forms with form classes for each case. This works all very well until now. Now I have the situation that I have to asign...

ASP.NET Checkboxes/RadioLists Arrow Keys

I have an ASP.NET web application for data entry, and we have big lists of radiobuttons, and long lists of checkboxes, in some sections. The client wants to be able to be able to navigate and manipulate these controls with their keyboard, like the tab/space/enter/right-left-up-down-arrow-keys. Are there any ASP.NET controls that I can ...

How to set checked property of CheckBoxList items in aspx markup?

I have a CheckBoxList in my page, with the DataTextField and DataValueField attributes set, is there an attribute that I can use to specify a property that indicates if it should be checked? I'm hoping to just set the datasource, and not have to have any code behind to set the checked property. Possible? ...

How to Insert one to many relationship using checkboxlist in VB.NET, LINQ to SQL?

I have 3 tables: CustomerType CusID EventType EventTypeID CustomerEventType CusID EventTypeID How to Insert one to many relationship using checkboxlist in VB.NET, LINQ to SQL? dim newEventType = new EventType newEventType.EventID = 1 db.EventType.InsertOnSubmit(newEventType) db.submitchange() Then I want it to automatically ins...

Maintaining state of dynamically-generated checkboxes

I'm using jquery to dynamically create a list of checkboxes. However, when there's an error, I need to preserve the state of the checkboxes. I have this working, but it seems a bit kludgy: get the value from the posted form, put it into viewstate, put the value of the viewstate var into a hidden field, get the value of the hidden fie...

asp.net checkboxlist problem, not getting value

Hello, I have following: <asp:CheckBoxList ID="CheckBoxList1" runat="server" > </asp:CheckBoxList> Then: protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CheckBoxList1.Items.Add(new ListItem("item1")); CheckBoxList1.Items.Add(new ListItem("item2")); } else CheckState(); } Problem is everytime...

Accessing a CheckBoxList control in a DotNetNuke Module

Hey all, I'm hoping I can get some quick help on this as I've been stuck here for the last week and can't move on until I get this figured out! I have a dynamically created CheckBoxList in a DotNetNuke module I'm building. When DNN creates the page, it prepends the control name with the moduleID and moduleName. So, when I have "AddLice...

How do I alphabetize the items in two different CheckBoxLists?

I have two checkboxes (Recommended and Others) which have peoples names (concatenated, i.e. John Smith is one item). I want to alphabetize the selected members of each list into one. How can I do this? ...

asp:CustomValidator / OnServerValidate

I have a CheckBoxList that I am trying to validate that at least one of the checkboxes is checked. Markup: <asp:CustomValidator ID="RequiredFieldValidator8" ValidationGroup="EditArticle" runat="server" ErrorMessage="At least one Category is required." OnServerValidate="topic_ServerValidate" /> <asp:CheckBoxList id="checkboxlis...

Dynamically created "CheckBoxList" in placeholder controls throwing null reference exception error during page postback

I have a web form that will dynamically create a number of checkboxlist filled with data based on the number of row in database. Then this is added to a placeholder to be displayed. theres a button when clicked, will add the selected check boxes value into database but right now when the button is clicked and after the postback, the pa...

How do I implement a checkbox list in ASP.NET MVC?

Just moved from WebForms to MVC and replacing various userinterfaces. Not sure how the WebForms CheckListBox is implemented, is there a jQuery plugin or a basic example of this somewhere? ...

Custom CheckBoxList in ASP.NET

Since ASP.NET's CheckBoxList control does not allow itself to be validated with one of the standard validation controls (i.e., RequiredFieldValidator), I would like to create a UserControl that I can use in my project whenever I need a checkbox list that requires one or more boxes to be checked. The standard CheckBoxList can be dragged ...