I am displaying the items inside the RadListbox. Somehow the item are displaying horizontally rather than vertically. Below is my code:
<telerik:RadAjaxPanel runat="server" CssClass="demo-container demo-content">
<telerik:RadListBox RenderMode="Auto" ID="lstFolder" runat="server"
Height="200px" Skin="Vista">
</telerik:RadListBox>
</telerik:RadAjaxPanel>
code behind, .cs class, I am binding the RadListBox with data from the database:
private void bindFolder()
{
using (TrustedSystemContext dbContext = new TrustedSystemContext())
{
lstBox.DataSource = dbContext.BoxInfo.ToList();
lstBox.DataTextField = "FolderName";
lstBox.DataValueField = "FolderId";
lstBox.DataBind();
}
}
These are the items in the database:
the items are displaying like so:
I want Folder1, Folder 2 to display vertically rather than on one line.
anhy hel will be appreciated.