[CLOSED] Ambiguous Call when creating a button menu in a toolbar(Razor syntax)

  1. #1

    [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]
  2. #2
    It is known issue, we will fix it in Ext.Net 2.0 beta release
    Please see the following post for workaround
    http://forums.ext.net/showthread.php...ll=1#post74820

Similar Threads

  1. [CLOSED] Razor syntax inside Ext Controls
    By mcfromero in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 08, 2012, 7:29 PM
  2. [CLOSED] DropTarget Not working in razor syntax
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 30, 2012, 11:08 AM
  3. [CLOSED] ImageCommand missing in Razor syntax
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 16, 2012, 12:05 PM
  4. [CLOSED] Razor Syntax for ListConfig on a combobox
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 27, 2012, 2:31 PM
  5. Replies: 1
    Last Post: Nov 30, 2011, 4:10 PM

Posting Permissions