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

Selected Value Combobox pass to label in another widget

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris
Top achievements
Rank 1
Chris asked on 08 Mar 2018, 11:11 AM

Hi,

 

I've got created a widget(combobox) with data from an external server.
I just want the value that I select from that combobox see into the label from another widget.

Source of the widget from the combobox:

 <div id="exampleCombo">
        <div class="demo-section k-content">
            <h4>Facility</h4>
            <input id="fac" style="width: 30%;" />
        </div>
        <script>
            $(document).ready(function (user) {
                $("#fac").kendoComboBox({
                    dataTextField: "client",
                    dataValueField: "client",
                    order: "ascending",
                    height: 400,
                    dataSource: {
                        // type: "odata",
                        type: "json",
                        transport: {

                            read: "/mvc/controllers/UserfacilitiesCombo/get/" + user
                        },
                        group: { field: "facility" }
                    },
                });
                  
            });

 

Source of the widget with the label on it:

 <div id="exampleLabel">
        <div class="demo-section k-content">
            <ul class="forms">
                <li>
                    <label>FacilityName</label>
                    <input id="FacPass"  name="FacPass" value="Test" class="k-textbox" style="width: 100%;" />
                </li>
            </ul>
        </div>

 

Can anybody help me on this?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Garo
Telerik team
answered on 12 Mar 2018, 11:43 AM
Hello Chris,

Telerik Platform is a solution for mobile app development with Cordova and NativeScript. Our support team can address issues and questions about those frameworks, the different Telerik Platform services, or the Kendo UI mobile controls (when used for mobile app development). Your questions seems to be related to the Kendo UI web controls (the combo box to be precise). I will try to address your current question below, however, I would recommend that you post any future questions you might have regarding the combo box or any other Kendo UI Web controls in the Kendo UI forums (ComboBox forum).

If I understand your question correctly, you can use the change event of the ComboBox to capture the selected value and then assign it to a label or pass it to a different control. The example in the provided link shows how to get the currently selected value. To pass it to a label, you can use jQuery to select the element (label) and update it.

I hope this helps.

Regards,
Garo
Progress Telerik
Telerik Platform is retiring on May 10, 2018.
This requires some actions on your side, so please consider reading the full announcement and migration guides at first opportunity.
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Garo
Telerik team
Share this question
or