-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renders select fields as inputs #87
Comments
The logic that renders out the report parameters is located in HtmlHelperExtensions.ParametersToHtmlString(). I would be curious how you have those parameters configured on your report (where do the values come from for the dropdown). I'm basically using the available values that are defined in your report for the select fields...and if there are none, then you get an input box rather than a select box. I have some parameters in my reports that have values specified manually and some that have the values pulled from a query and both of those are working fine for me. |
Ah, come to think of it the Buildings are populated after selecting the Client, so changing Client will change the possibilities of the Buildings selection. That might be whats causing this, no? Thought I saw something about nested calls... The Language I do not know. I do not have access to the Report as such, so I cannot really give you any info on how the report is setup, but I am tasked with showing it in a web site. |
@j71h, If you inspect the Chrome web developer console, do you have any errors happening? There's a function that should be running on change of the select fields to perform the nested parameters lookup to build the updated lists (ReportViewer_Register_OnChanges()). |
@alanjuden, Thanks for you comments. It lead me in the right direction. I used the code samples in your blog post as template for my view page and as it turns out that code was not up to date. Using the code in the examples here in GitHub worked much better. Still there are some odd behavior. Those two fields are not populated on initial load, but as soon as I do a Thanks for your quick response. |
Rendering the report parameters almost works but some fields that should be <select> end up as <input>.
Image 1: Old Web form rendering, notice Buildings and Language
Image 2: Detail on Buildings drop down with muliti-select
Image 3: MvcReportViewer rendering
I'm thinking of forking to fix this, do you have any clue to what is going on?
The text was updated successfully, but these errors were encountered: