I attached a video and the code I used. I am trying to remove and add pageviews. (I would hide them it i knew how)
When I add the pageview back in while the hamburger menu is closed it somewhat expands the tabs. I would like it to leave it closed
Hello, Don,
Following the provided information, I have prepared a sample project to test the described behavior. Indeed, if I add a RadPageViewPage to the Pages collection while the hamburger is closed, it gets expanded. The attached gif file illustrates better the obtained behavior with the sample project.
I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.
I have also updated your Telerik points.
Currently, the possible solution that I can suggest is to disable the animation and force expand/collapse operations:
Sub New()
InitializeComponent()
Dim navigationElement = TryCast(Me.RadPageView1.ViewElement, RadPageViewNavigationViewElement)
navigationElement.AllowAnimation = False
End Sub
Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click
If Not Me.RadPageView1.Pages.Contains(Me.RadPageViewPage2) Then
Me.RadPageView1.Pages.Insert(1, Me.RadPageViewPage2)
Me.RadPageView1.Update()
Dim navigationElement = TryCast(Me.RadPageView1.ViewElement, RadPageViewNavigationViewElement)
navigationElement.Expand()
navigationElement.Collapse()
Else
Me.RadPageView1.PerformLayout()
End If
End Sub
Private Sub RadButton2_Click(sender As Object, e As EventArgs) Handles RadButton2.Click
If Me.RadPageView1.Pages.Contains(Me.RadPageViewPage2) Then
Me.RadPageView1.Pages.Remove(Me.RadPageViewPage2)
End If
End Sub
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik