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

Gauge in RadMenu

1 Answer 2 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 24 Dec 2014, 02:42 PM
I've read this - http://www.telerik.com/forums/how-to-use-gauge-inside-the-grid

but is there a way to embed a linear gauge in a menu?

thank you

1 Answer, 1 is accepted

Sort by
0
Misho
Telerik team
answered on 26 Dec 2014, 09:37 AM
Hello,

If you want to embed any HTML controls in a menu item, you could use templates.
You can find more information for the approach in this help article and this demo.
I'm also attaching a code snippet showing how to embed a linear gauge in a menu for your convenience:

<telerik:RadMenu runat="server">
          <Items>
              <telerik:RadMenuItem Text="MenuItem1" NavigateUrl="DefaultCS.aspx?Page=Products">
                  <Items>
                      <telerik:RadMenuItem>
                          <ItemTemplate>
                              <telerik:RadRadialGauge ID="RadRadialGauge1" Width="100" Height="100" runat="server">
                              </telerik:RadRadialGauge>
                          </ItemTemplate>
                      </telerik:RadMenuItem>
                      <telerik:RadMenuItem Text="RadGauge">
                          <ContentTemplate>
                              <telerik:RadRadialGauge ID="RadRadialGauge1" Width="100" Height="100" runat="server">
                              </telerik:RadRadialGauge>
                          </ContentTemplate>
                      </telerik:RadMenuItem>
                      <telerik:RadMenuItem Text="UI for ASP.NET AJAX" NavigateUrl="Default.aspx" />
                      <telerik:RadMenuItem Text="UI for WinForms" NavigateUrl="Default.aspx" />
                  </Items>
              </telerik:RadMenuItem>
              <telerik:RadMenuItem Text="MenuItem2" NavigateUrl="DefaultCS.aspx">
                  <Items>
                      <telerik:RadMenuItem Text="UI for ASP.NET AJAX" NavigateUrl="Default.aspx" />
                      <telerik:RadMenuItem Text="UI for WinForms" NavigateUrl="Default.aspx" />
                  </Items>
              </telerik:RadMenuItem>
          </Items>
      </telerik:RadMenu>

I hope that helps.

Regards,
Misho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Gauge
Asked by
david
Top achievements
Rank 1
Answers by
Misho
Telerik team
Share this question
or