i have this on the front end
and in the server i have
this will make my image clickable but if i take out CHILDITEM.TEXT = " " then my items are not clickable anymore. is there any other way to do this? please help thank you very much.
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="150px" Height="800px" ExpandMode="FullExpandedItem" |
OnItemClick="RadPanelBar1_ItemClick" Skin="Vista"> |
<Items> |
<telerik:RadPanelItem Value="RadPanelBar_ThumbNail" Text="Pictures" Expanded="true"> |
<Items> |
<telerik:RadPanelItem Value="ThumbNail_Child" /> |
</Items> |
</telerik:RadPanelItem> |
</Items> |
</telerik:RadPanelBar> |
Dim PanelItem As RadPanelItem = DirectCast(RadPanelBar1.Items(0), RadPanelItem) |
For Each sFile As String In System.IO.Directory.GetFiles(Server.MapPath("images/thumbnail")) |
Dim sJustFile As String = New System.IO.FileInfo(sFile).Name |
Dim ChildItem As New RadPanelItem |
ChildItem.Text = " " |
ChildItem.ImageUrl = "images/thumbnail/" & sJustFile.ToString |
ChildItem.Value = Replace(sJustFile.ToString, "-thumb.jpg", "") |
PanelItem.Items.Add(ChildItem) |
Next |