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

Dependent-Linked widgets

2 Answers 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 16 Dec 2011, 11:13 PM
Hi,

I just bought Kendo UI and am rebuilding a php app using the framework and widgets. Great tools and I'm looking forward to the updates next year!

I need to be able to chain multiple widgets together using the onchange event. For example, I have an autocomplete that users select a buyer from. When a buyer is selected I want to bind a combobox or dropdown to the selected value (id) in the autocomplete.

I also need to be able to set the value of several text boxes and hidden fields based on the selection of the autocomplete and other widgets on the same page. Fairy standard jquery stuff, but I'm not sure hoiw these widgets work.

My hope is that I can use the datasource to create buyer data (json) and use the onchange event to create the widget dependencies. Can you provide a basic dependent widget example? I'm using php/mysql for the back-end and can create all the json needed.

Thanks for any help.

Thanks,

Tony

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 21 Dec 2011, 04:05 PM
Hi Tony,

 Indeed you should use the change event of the widgets and the value() method to set their value. Here is a sample showing how to link an autocomplete and a dropdownlist: http://jsfiddle.net/korchev/UVaKQ/73/ 

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Paul
Top achievements
Rank 1
answered on 26 Feb 2012, 08:41 PM
The jsfiddle link is broken. Any chance we to get the link working? I need the same solution.
Tags
General Discussions
Asked by
Tony
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Paul
Top achievements
Rank 1
Share this question
or