Declined
Last Updated: 09 Jun 2022 12:13 by ADMIN
Doug
Created on: 26 May 2022 15:17
Category: DropDownList
Type: Feature Request
0
Not all configuration options for dropdownlist are available via MVVM, please make them accessible.

As my grid edit forms have expanded past the default popup, I have been using editable template. These are bound with MVVM and work well. But not all options work via MVVM like the cascade options below. I would like to use the cascade options in this scenario. It would be great to have all configuration options available via MVVM.

            <select id="ParentID" name="ParentID"
                    style="width: 100%"
                    data-role="dropdownlist"
                    data-text-field="Name"
                    data-value-field="ID"
                    data-cascade-from="ImprovementTargetID"
                    data-cascade-from-field="ImprovementTargetID"
                    data-cascade-from-parent-field="ID"
                    data-source="PEDropDownDataSource"
                    data-option-label="Pick PE..."
                    data-value-primitive="true"
                    data-bind="value:ParentID">
            </select>
3 comments
ADMIN
Neli
Posted on: 09 Jun 2022 12:13

Hi Doug,

For the bindings to work as expected the content of the editor should be wrapped in script as in the example below:

 <script id='template' type='x-kendo/template'>
...
</script>

And in the Grid configuration:

editable: {
                  mode: "popup",
                  template: $("#template").html(),                  
},

Here is the modified example where the cascading functionality is enabled using the data-cascade binding.

As the data-cascade usage is demonstrated in the Dojo above I will mark the request as 'Declined'

I hope this helps.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Doug
Posted on: 02 Jun 2022 14:57

The problem is happening when MVVM is used in a grid popup editor template.

I have recreated the problem here.

https://dojo.telerik.com/UHiWuSex

To ensure I had the right values in the properties I used your example with my data and this works

https://dojo.telerik.com/ebUgIgah

 

 

 

ADMIN
Neli
Posted on: 02 Jun 2022 10:27

Hello Doug,

I have tested locally by using the cascadeFromField and cascadeFromParentField in MVVM scenario. Below you will find two Dojo examples where the mentioned configuration options are used and working as expected. Could you please take a look and let me know if I am missing something?

- cascade form field

- cascade from parent field

Looking forward to your reply.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.