Declined
Last Updated: 21 Mar 2019 16:28 by Dimitris I.
Dimitris I.
Created on: 14 Mar 2019 15:04
Category: Kendo UI for jQuery
Type: Bug Report
1
Dropdown menu not inheriting editable options.

He have created this dojo to illustrate our point.

https://dojo.telerik.com/@navdeep316/iKAmeDAv

We would like to be able to be able to clone options from the top options and subsequently to be able to edit any cloned (child) option. 

We are unable to figure out a way so that the child/cloned dropdowns can change state.

Is it a bug or a feature? How can we achieve our aim?

Thank you so much,

Dimitris 

6 comments
Dimitris I.
Posted on: 21 Mar 2019 16:28

Thank you very much indeed Petar. This is the exact functionality needed!

I have conveyed your response to our dev team.

We are extremely obliged to you. 

ADMIN
Petar
Posted on: 21 Mar 2019 16:10
Hi Dimitris,

Here is the code example I believe will help you do what you need to do. 

The changes made vs the previous Dojo are as it follows:
  • The initial DropDownLists have their own Id-s and are separately initialized on $(document).ready() event
  • This is what happens on click on "Clone" button:
    • There are 2 new variables holding the currentRowIndex and the current rowCount
    • Other 2 variables hold the data of the DropDownLists which are part of the selected for cloning row
    • Each of the new DropDownLists gets their own unique element id and copy the value from the parent they clone
    • The two DropDownLists are being added as a new row at the end of the table 

Hope the above covers the scenario you are trying to achieve.  

Regards,
Petar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Dimitris I.
Posted on: 20 Mar 2019 10:43

Petar our team reverted with this:

That in the code provided, although the values do load, they do not keep the options from when 'clone' button was pressed. It rather loads the options from the datasource.

They said that it appears you can either just load an active dropdown (as you did) but unable to preload it with the options selected when cloned or you can do the clone of the values but without being able to change them/instantiate them (thus you cannot even change them).

Is there any way to have the clone dynamic (as you did in your sample) but also load the values of the previous dropdown when clone was pressed?

Any suggestions?

 

 

Dimitris I.
Posted on: 19 Mar 2019 13:50

Thank you very much indeed Petar! We are grateful!

Best regards!

ADMIN
Petar
Posted on: 19 Mar 2019 13:40

Hello, Dimitris.

The provided example clones your initial DropDownList but it doesn't initialize a new Kendo UI DropDownList. To achieve what you want, you must initialize every new DropDownList like you do on $(document).ready() event in your code. Here is a short edit of your code which demonstrates what you want to do. 

In case you have any further questions – please do not hesitate to contact us.

Regards,

Petar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Dimitris I.
Posted on: 19 Mar 2019 12:38
Can you please provide us with an alternative?