Feb 22, 2012, 4:37 AM
[CLOSED] Ambiguous Call when creating a button menu in a toolbar(Razor syntax)
I'm just doing some experiments with the new Razor syntax and have run into the following error:
Error 3 The call is ambiguous between the following methods or properties: 'Ext.Net.ButtonBase.Builder<Ext.Net.Button,Ext.Net.Button.Builder>.Menu(System.Action<Ext.Net.MenuCollectionBuilder<Ext.Net.Button,Ext.Net.Button.Builder>>)' and 'Ext.Net.ButtonBase.Builder<Ext.Net.Button,Ext.Net.Button.Builder>.Menu(System.Action<Ext.Net.MenuCollection>)'
Not sure if it's a bug or me being an idiot :) the code snippet I'm using to add to the Items collection of my toolbar is:tbItem4 => tbItem4.Add(Html.X().Button()
.Icon(Icon.StatusOnline)
.Text("TEST USER")
.Menu(tbMnu => tbMnu.Add(Html.X().Menu()
.Items(mnItem => mnItem.Add(Html.X().MenuItem()
.Text("Profile")
.Icon(Icon.Magnifier)
Any ideas on how to get around this?
Last edited by Daniil; Feb 22, 2012 at 4:40 PM.
Reason: Please use [CODE] tags, [CLOSED]