PDA

View Full Version : [CLOSED] [2.0] Razor and Panel TopBar



Timothy
Feb 19, 2012, 3:21 PM
Hello,

How would one add a toolbar to a topbar in a panel using MVC 3 razor?

Cheers,
Timothy

geoffrey.mcgill
Feb 19, 2012, 5:20 PM
Hi Timothy,

There does appear to be an "Ambiguous Reference" exception thrown. We are looking into a fix right now.

Timothy
Feb 19, 2012, 5:23 PM
Thanks, I was worried it was just me.


Hi Timothy,

There does appear to be an "Ambiguous Reference" exception thrown. We are looking into a fix right now.

Daniil
Feb 20, 2012, 10:12 AM
Hi,

Vladimir has fixed it.

The fix should appear in the next release which is imminent.

Timothy
Feb 20, 2012, 1:50 PM
Any work around until the release? Or can I get the latest version from the trunk?

Cheers

Vladimir
Feb 20, 2012, 2:05 PM
Hi,

You can cast a delegate to avoid ambiguous error


.TopBar((System.Action<Ext.Net.ToolbarCollection>)(items => {
items.Add(Html.X().Toolbar().Items(buttons => {
buttons.Add(Html.X().Button()
.Text("Button1")
.Icon(Icon.Add)
);
}));
}))

Timothy
Feb 20, 2012, 2:58 PM
Thanks vladsch.

Cheers,
Timothy