Hi I am using a Panel bar that is being populated from a db, and I want to be able to disable or remove an item on page load.
I am using the following code, but it does not seem to do anything.
I tried using an onclick event instead and that worked, is there something wrong with my code?
I am using the following code, but it does not seem to do anything.
I tried using an onclick event instead and that worked, is there something wrong with my code?
Sub
Page_Load()
If Not (Page.IsPostBack) Then
Dim item As RadPanelItem = RadPanelBar1.FindItemByText("Forum")
item.Owner.Items.Remove(item)
End
If
End Sub
Any help would be greatly appreciated.
Jason