This is a migrated thread and some comments may be shown as answers.

Issue with kendoMultiSelect values on filter

3 Answers 70 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Frederic
Top achievements
Rank 1
Veteran
Iron
Frederic asked on 19 Jun 2020, 02:25 AM

Hi, we tried to push the kendoFilter to its limit, by adding some custom filter components, like dropdownlist and kendomultiselect.

We do not have any problem with dropDownList, the selected value is sent to the filter as expected.

But, for the kendoMultiSelect, we do not get the "ids" in the filter value, but an array of all dataItems.

The ".value()" of the kendoMultiSelect only contains ids as expected, but in the corresponding value of the dataFilter, we see dataItems.

Look at that sample, with field/operator "multi / anyOf". 

Initially, we set ids as value, and they are correctly set. 

But when you click on the multiselect to change values, you will see what happen.

I can loop for all values of the "expression" and fix them, but that's not what I want.

I need to get the kmulti "value" property set as-is to the filter value.  Not the complete dataItems, just the ids.

How can I do this?

I think it's a bug!

3 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 22 Jun 2020, 02:32 PM

Hello,

Based on the information it would be difficult to determine what is causing this behavior. Can you please send us a small dojo in which this problem can be observed. That way we should be able to provide a straight to the point answer.

Regards,
Angel Petrov
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.
0
Frederic
Top achievements
Rank 1
Veteran
Iron
answered on 22 Jun 2020, 07:21 PM

Oh!!!!! I forgot the dojo link! :-)

 

https://dojo.telerik.com/@foxontherock/iYelAJiP/4

0
Accepted
Angel Petrov
Telerik team
answered on 24 Jun 2020, 12:35 PM

Hi,

Actually all looks really good! The behavior is caused by the fact that the valuePrimitive option is not set to true. If set in such a manner as shown in this modified dojo all works as expected.

Regards,
Angel Petrov
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.
Tags
Filter
Asked by
Frederic
Top achievements
Rank 1
Veteran
Iron
Answers by
Angel Petrov
Telerik team
Frederic
Top achievements
Rank 1
Veteran
Iron
Share this question
or