Hi All,
I have a listbox with two columns of checkboxes in it. I am binding the list to the database and the data is being dispalyed, but none of the checkboxes is cheked. how can I retreive the checkboxes data for the listbox. Below is my code for binding the listbox
and my aspx code loks like this
Any help will be apprecaited.
I have a listbox with two columns of checkboxes in it. I am binding the list to the database and the data is being dispalyed, but none of the checkboxes is cheked. how can I retreive the checkboxes data for the listbox. Below is my code for binding the listbox
public void populate_selectedAssistAgency(String casRepId) { Model.rep.repHeader RepHeader = new Model.rep.repHeader(); AssistAgencyAdapter adp = new AssistAgencyAdapter(); List<Assist> assist = new List<Assist>(); RepHeader.repId = RepId; RepHeader = adp.getSelectedAssistAgency(RepHeader); assist = RepHeader.RepAssistAgency; RadListBox RadListBox_selectedAssistAgency = (RadListBox)RadPanelBar1.FindItemByText("RepIssues").Items[0].FindControl("RadListBox_selectedAssistAgency"); RadListBox_selectedAssistAgency.DataSource = assist; RadListBox_selectedAssistAgency.DataTextField = "Assist_location_name"; RadListBox_selectedAssistAgency.DataValueField = "Assist_location_id"; RadListBox_selectedAssistAgency.DataBind(); } and my aspx code loks like this
<td style="width:"2%">t<br /> <telerik:RadListBox runat="server" ID="RadListBox_selectedAssistAgency" AllowDelete="false" AllowReorder="false" AutoPostBack="false" SelectionMode="Multiple" Width="120px" Height="200px" > <ItemTemplate> <asp:CheckBox ID="chkAssistDistance" runat="server" /> <asp:CheckBox ID="chkAssistOnSite" runat="server" /> <asp:Label ID="lblAssistAgencySelected" runat="server" Text='<%# DataBinder.Eval(Container,"Text") %>'></asp:Label> </ItemTemplate> </telerik:RadListBox>Any help will be apprecaited.