This is a migrated thread and some comments may be shown as answers.

Hamburger Menu - Prevent Expanding

7 Answers 285 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 12 Sep 2018, 03:54 PM

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?

7 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 13 Sep 2018, 11:00 AM
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.
0
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 13 Sep 2018, 11:23 AM

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?

 

 

0
Dimitar
Telerik team
answered on 14 Sep 2018, 08:10 AM
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.
0
atfats
Top achievements
Rank 1
answered on 23 Sep 2018, 03:37 PM

hi

is hambuger menu can work right to left please ?

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Sep 2018, 10:35 AM
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.
0
atfats
Top achievements
Rank 1
answered on 25 Sep 2018, 07:09 PM

Hi Dess

thx a lot for your interesting

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

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Sep 2018, 09:43 AM
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.
Tags
Menu
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dimitar
Telerik team
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
atfats
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or