Completed
Last Updated: 12 Jun 2020 16:05 by ADMIN
Release R2 2020 SP1
Don
Created on: 26 Feb 2020 20:23
Category: PageView
Type: Bug Report
0
RadPageView: Adding Page while hamburger is closed causes hamburger to expand

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

Attached Files:
2 comments
Don
Posted on: 27 Feb 2020 13:37
Thank you for the code above. I was able to solve my issue. 
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 27 Feb 2020 10:05
 

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.