Currently I'm trying to pass a whole object into the CallbackRouteValues body. I tried it
@ html.DevExpress.ReportViewer (with the new ReportViewer settings {Name = Model.ReportID. Report = Model.Report, .clackRouteValues = New with {. ReportID = Model.ReportID, Model = Model, .converter = "Sales", Action = "Generals' Reciprocal"}. ExportsRate Value = {. Controller = "Sales", Action = "Exportable Viewerpartial", with New. RotportID = Model. Reports IDID}, PrintUsingAdobePlugIn = False}) .GetHtml () And I tried this for the controller
function Generates SilesReceiptPartial (Model as ReceiptModels.View) as ActionResult where rasidodels.view is a class, but the model will not be able to bind itself into the classroom, resulting in empty objects Will happen. Is there any other way of passing the whole object on the callback?
Thank you
The ASP.NET MVC engine can not parse a string and can not prepare a class instance until it is a simple type. To make this possible, create a descendant, override its more methods, and apply the conversion on a type of string type to the model. Assign model class to this converter through attribute
URL helper class (this is used by ReportViewer to create callback URL), although do not use type converter, however, to handle the conversion to type the string from the model, the model Apply the interface to the class.
No comments:
Post a Comment