Hamburger Menu - Prevent Expanding

8 posts, 0 answers
  1. Martin Hamilton
    Martin Hamilton avatar
    25 posts
    Member since:
    Aug 2009

    Posted 12 Sep 2018 Link to this post

    I'm trying out the Hamburger menu, but when I click the 'Hamburger Icon" it begins to expand very slowly.  It's not as 'zippy' as in the demo... probably due to the complex control that is within the first menu item.

    Anyway, I don't really want it to expand (I have it set to Compact) anyway.

    Is there to prevent it from expanding when the 'hamburger icon' is clicked?

  2. Dimitar
    Admin
    Dimitar avatar
    2677 posts

    Posted 13 Sep 2018 Link to this post

    Hi Martin,

    Currently, this is possible by creating a custom view element and overriding the Expand/Collapse methods. Here is a sample implementation:
    class MyPageView : RadPageView
    {
        protected override RadPageViewElement CreateUI()
        {
            if (this.ViewMode == PageViewMode.NavigationView)
            {
                return new MyNavView();
            }
            return base.CreateUI();
        }
        public override string ThemeClassName
        {
            get { return typeof(RadPageView).FullName; }
        }
    }
    class MyNavView : RadPageViewNavigationViewElement
    {
        protected override Type ThemeEffectiveType
        {
            get { return typeof(RadPageViewNavigationViewElement); }
        }
        public override void Collapse()
        {
            //base.Collapse();
        }
        public override void Expand()
        {
            //base.Expand();
        }
    }

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    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.
  3. Martin Hamilton
    Martin Hamilton avatar
    25 posts
    Member since:
    Aug 2009

    Posted 13 Sep 2018 in reply to Dimitar Link to this post

    Hi Dimitar,

    It would have been nice to have just been able to set e.cancel = true on the PageExpanding sub routine... but that's ok.

    BUT

    1) I plugged in the two classes but when I plugged in the MyPageView class - this property throws an error;

    Public Overrides ReadOnly Property ThemeClassName() As String     
    Get         
    Return GetType(RadPageView).FullName     
    End Get
    End Property

    Error BC30362 'Public Overrides ReadOnly Property ThemeClassName As String' cannot override 'Public Overridable Overloads Property ThemeClassName As String' because they differ by 'ReadOnly' or 'WriteOnly'. QBSQLv2 D:\Ridgefield\QBSQLv2\QBSQLv2\FormMain.vb 2404 Active

    2) Aside from that - can you explain how I would tie the RadPageView control into these classes to effectively prevent and expand.

    So I instantiate the class but I can't see how to assign the RadPageView to the class(s)… can you give me an example?

     

     

  4. Dimitar
    Admin
    Dimitar avatar
    2677 posts

    Posted 14 Sep 2018 Link to this post

    Hello Martin,

    I have logged a feature request for this in our Feedback Portal. You can track its progress, subscribe to status changes and add your comment to it here. I have also updated your Telerik Points.

    1. I have attached a VB project that shows this. 

    2. You can replace the class in the Designer.cs file (see attached image).

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. atfats
    atfats avatar
    2 posts
    Member since:
    Feb 2014

    Posted 23 Sep 2018 Link to this post

    hi

    is hambuger menu can work right to left please ?

  6. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3194 posts

    Posted 24 Sep 2018 Link to this post

    Hello, Atfat,  
     
    Note that the hamburger menu is achieved by the NavigationView in RadPageView. RadPageView supports right-to-left functionality but for the NavigationView it is not properly implemented yet. It seems like a reasonable request and I have logged it in our feedback portal. 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.

    I hope this information helps.

    Regards,
    Dess
    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.
  7. atfats
    atfats avatar
    2 posts
    Member since:
    Feb 2014

    Posted 25 Sep 2018 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Hi Dess

    thx a lot for your interesting

    hope this can be resolved in you next release !!!

  8. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3194 posts

    Posted 27 Sep 2018 Link to this post

    Hello, Atfat,  

    I can't give you an exact time frame when the issue will be addressed. Make sure that you have subscribed to status changes by clicking the "Follow this item" link. Thus, you will be notified when the status is changed.

    Should you have further questions please let me know.

    Regards,
    Dess
    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.
Back to Top