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

public void populate_selectedAssistAgency(String RepId)
{
    Model.rep.repHeader RepHeader = new Model.rep.repHeader();
    AssistAgencyAdapter adp = new AssistAgencyAdapter();
    List<Assist> assist = new List<Assist>();
    RepHeader.repId = RepId;
    RepHeader = adp.getSelectedAssistAgency(RepId);
    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>

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to