This is a migrated thread and some comments may be shown as answers.

Listbox not show data

1 Answer 51 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Naunton
Top achievements
Rank 1
Naunton asked on 10 Jan 2011, 03:22 AM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 10 Jan 2011, 01:43 PM
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.
Tags
ListBox
Asked by
Naunton
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or