Prevent Adding Custom Values in case Child of Cascading MultiColumnComboBox

2 Answers 75 Views
MultiColumnComboBox
Baxing
Top achievements
Rank 1
Iron
Iron
Iron
Baxing asked on 23 Jul 2021, 03:54 AM

Hello,

 

I alone of MultiColumnComboBox we can prevent adding custom values with change event follow your sample in ComboBox.

with "change code"

change: function(e) {
            var widget = e.sender;

            if (widget.value() && widget.select() === -1) {
              //custom has been selected
              widget.value(""); //reset widget
            }
          }

Follow this sample work with anyone or the parent(Master) MultiColumnComboBox, but in case child(Detail) of MultiColumnComboBox, It's not working because if I selected parent MultiColumnComboBox first and then child MultiColumnComboBox wil show data follow selected list in parent. In this case ("change code") will prevent any data in child MultiColumnComboBox, as a result, any items in it cannot be displayed.

Please guide me for prevent add custom values in the child(Detail) of MultiColumnComboBox,  if I use Cascading MultiColumnComboBox.

Thank.

2 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 27 Jul 2021, 10:54 AM

Hi Baxing,

I have tested locally by resetting the value of the child widget in cascading MultiColumnComboBoxes. As you will see in the Dojo linked here, a custom value could not be added to the child MultiColumnComboBox. Please let me know if I am missing something. I will appreciate it if you could send us more details on the expected result.

Looking forward to your reply.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Baxing
Top achievements
Rank 1
Iron
Iron
Iron
answered on 28 Jul 2021, 03:16 AM

Hello Neli,

I'm sorry which I have tried before but can't use it as I posted.
But let's try from your example again Dojo linked here. and then go back to test my code again, it appears that it works Maybe it's because I misreferenced the Jason file for my child.

 

Thank you very much

Neli
Telerik team
commented on 30 Jul 2021, 01:34 PM

Hi Baxing,

Take your time to test the provided suggestion.

In case the issue continues to persist please modify the Dojo from my last reply in order to reproduce the behavior the way it is at your side and send it back for a review. This way we could understand the issue better and advise you further. 

Regards, Neli

Tags
MultiColumnComboBox
Asked by
Baxing
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Neli
Telerik team
Baxing
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or