2024年终活动

DevExpress控件使用交流,DevExpress中国社区Dev联系电话 联系电话:023-68661681

如何通过MVC ComboBox控件传递参数到XtraReports报表中?

来源:本站原创   发布时间:2012-11-20   浏览:3271次

参考代码如下:

VB.NET

@Html.DevExpress().CallbackPanel( _
Sub(settings)
settings.Name = "callbackPanel"
settings.CallbackRouteValues = New With {Key .Controller = "Home", Key .Action = "CallbackPanelPartial"}
settings.Width = System.Web.UI.WebControls.Unit.Percentage(100)
settings.Height = 300
settings.SetContent( _
Sub()
Html.RenderPartial("ReportViewerPartial")
End Sub)

End Sub).GetHtml()

C#

@Html.DevExpress().CallbackPanel(
settings => {
settings.Name = "callbackPanel";
settings.CallbackRouteValues = new { Controller = "Home", Action = "CallbackPanelPartial" };
settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
settings.Height = 300;
settings.SetContent(() => {
@Html.RenderPartial("ReportViewerPartial");
});
}).GetHtml()

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:DevExpress控件中文网 [https://www.devexpresscn.com/]
本文地址:https://www.devexpresscn.com/post/422.html
扫码咨询
电话咨询
023-68661681
返回
顶部