Listbox not show data

2 posts, 1 answers
  1. Naunton
    Naunton avatar
    70 posts
    Member since:
    Jun 2010

    Posted 09 Jan 2011 Link to this post

    Hi all,

    I have bind listbox as the following at RadAjaxManager1_AjaxRequest event.

    ListBox1.DataTextField = "Desc"
    ListBox1.DataValueField = "ID"
    ListBox1.DataSource = dt
    ListBox1.DataBind()
    Data didn't show out in ListBox1.

    But when I look at Watch window like this   ListBox1.Items.count it shows me 5 , when I look detail  ListBox1.Items(0).text it shows "AAA".
    So this mean data are already in Listbox, but just not show.

    Please advise how I can show these data?
    Here is my Listbox sourcecode
    <telerik:RadListBox ID="ListBox1" runat="server" CheckBoxes="True"
                Skin="Default" Height="300px" >
            </telerik:RadListBox>

    Please Help...

    Thanks and best regard.
  2. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 10 Jan 2011 Link to this post

    Hello naunt,

    You need to add the following setting to RadAjaxManager in order to make this work: "RadAjaxManager1 updates RadListBox1".

    I hope this helps.

    Regards,
    Simon
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top