Asp.net mvc 3 设置屏蔽UI ASP.NET MVC图表缩放模式时出错

Asp.net mvc 3 设置屏蔽UI ASP.NET MVC图表缩放模式时出错,asp.net-mvc-3,shieldui,Asp.net Mvc 3,Shieldui,我试图启用Shield ASP.NET MVC图表的ZoomMode,但收到以下错误: Server Error in '/' Application. ________________________________________ Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please revi

我试图启用Shield ASP.NET MVC图表的ZoomMode,但收到以下错误:

Server Error in '/' Application.
________________________________________
Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS1502: The best overloaded method match for 'Shield.Mvc.UI.Chart.ChartBuilder<object>.ZoomMode(Shield.Mvc.UI.Chart.ZoomMode)' has some invalid arguments

您犯的错误是使用的是字符串,而不是使用MVC时需要使用的预定义类型。的确,对于JavaScript Shield UI图表,缩放模式是通过传递字符串参数来定义的,但在MVC中,您需要使用以下代码:

.ZoomMode(Shield.Mvc.UI.Chart.ZoomMode.XY)
.ZoomMode(Shield.Mvc.UI.Chart.ZoomMode.XY)