Under Review
Last Updated: 30 Jun 2020 13:26 by ADMIN
Naim
Created on: 05 Jun 2020 12:41
Type: Bug Report
1
ReportViewer confuses "MultiValueEditor" with "MultiSelectEditor"
When i use "MultiSelectEditor" with parameters that have MultiValue set to true and have provided AvailableValues, it doesn't handle them. Only when i use those parameters with "MultiValueEditor" then it handles them even though "MultiValueEditor" is used with parameters that have not provided AvailableValues.
5 comments
ADMIN
Nasko
Posted on: 30 Jun 2020 13:26

Hi Naim,

I understand that you are overriding the default parameter widget of the viewer and substituting it with a custom parameter widget for the desired parameter type. In order to understand the issue and provide suggestions, we will need to review your custom scenario in more details first. Please provide a runnable project demonstrating the issue here or steps and code snippets that will allow us to replicate locally.

Regards,
Nasko
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Naim
Posted on: 23 Jun 2020 15:29

Hi Neli,

Yes you understood correctly.

We are using the "MultiValueEditor" with kendoMultiSelect for parameters with multiple selection and we are handling the select event to select all elements with one select like in this article: https://docs.telerik.com/kendo-ui/controls/editors/multiselect/how-to/selection/select-all-values-with-one-selection.

We are aware of out-of-the-box option: Editors = new Editors { MultiSelect = EditorTypes.ComboBox } but this option doesn't provide handling of events. It would be good if it did.

ADMIN
Neli
Posted on: 19 Jun 2020 13:16

Hi Naim,

If I understood correctly, you don't expect the MultiValueEditor to work with a parameter with AvailbleValues. Is it possible to give me more details about the project? How and why do you use the MultiValueEditor? It will also help us if you can send us a sample runnable project.

 Note that since last year we provide out-of-the-box option to use combo box:

.Parameters(new Parameters { Editors = new Editors { MultiSelect = EditorTypes.ComboBox} })

I will be looking forward to receiving an update from you.

Regards,
Neli
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Naim
Posted on: 12 Jun 2020 13:29

Hi Neli,

Actually i am talking about these two editors for MVC ReportViewer:

https://docs.telerik.com/reporting/m-telerik-reportviewer-mvc-iparametereditorsbuilder-multivalueeditor

and

https://docs.telerik.com/reporting/m-telerik-reportviewer-mvc-iparametereditorsbuilder-multiselecteditor

The description for the "MultiValueEditor" is "Attach the parameter editor that will handle parameters that have MultiValue set to true but have not provided AvailableValues". And the description for the "MultiSelectEditor" is "Attach the parameter editor that will handle parameters that have provided AvailableValues and MultiValue set to true."

 

Now when i use parameter with "MultiValueEditor" it handles them even though those parameters have AvailableValues.

ADMIN
Neli
Posted on: 12 Jun 2020 06:17

Hello Naim,

Do you mean that when you use a report parameter with MultiValue = true,  the SingleSelectEditor doesn't work and when you use  MultiValueEditor, it works? If so, note that this behavior is expected. If that's not the issue, please, give us more details or maybe you can send us a sample project on which the issue is reproducible. 

Regards,
Neli
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.