Hi
I am filling a listbox based on the values selected in a tree view, the list box items need to be a RadEditor, i have this working but sometimes when the list box items are created and added the RadEditor Menu items are displayed aswell (this does not happen all the time). I dont want the menu items to display as i only want to show the content as though it was a textbox with no editing functionality. Can i set the Menu Property at the point of creating the content item to ensure that the menu does not show.
My Code that creates the ListBox Item and Editor Content is as follows :
I am filling a listbox based on the values selected in a tree view, the list box items need to be a RadEditor, i have this working but sometimes when the list box items are created and added the RadEditor Menu items are displayed aswell (this does not happen all the time). I dont want the menu items to display as i only want to show the content as though it was a textbox with no editing functionality. Can i set the Menu Property at the point of creating the content item to ensure that the menu does not show.
My Code that creates the ListBox Item and Editor Content is as follows :
For Each node In RadTreeViewTCs.GetAllNodes
If node.Checked = True Then
'Do Some Stuff Here
ElseIf node.Checked = False Then
Dim Value As New RadListBoxItem
Dim Content As New RadEditor
Content.Content = node.Text.ToString
Content.Width = "150"
Content.Height = "75"
Value.Controls.Add(Content)
ListBoxExcludedTCS.Items.Add(Value)
End If
Next node
ListBoxExcludedTCS.DataBind()