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
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
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?
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
hi
is hambuger menu can work right to left please ?
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
Hi Dess
thx a lot for your interesting
hope this can be resolved in you next release !!!
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