I have a PanelBar that is tied to a sql server stored procedure. In my stored procedure, I am working out the users who should see certain panel items, so I have a field called "Item_Visible". Is there a way to get each item to pull from what I am returning in my stored procedure are mark the items visibility based on that field?
I should have kept looking. I think I have figured it out:
Protected Sub RadPanelBar_ItemDataBound(sender As Object, e As RadPanelBarEventArgs) Dim row As DataRowView = DirectCast(e.Item.DataItem, DataRowView) e.Item.Visible = DataBinder.Eval(e.Item.DataItem, "Item_Visible") End Sub
Thank you for sharing your nice solution, Angela!
For fellow developers, it might be useful to share another approach for hiding the panelbar items with a CSS style demonstrated in this forum thread: Hide element of RadPanelItem.