We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to pass dropdownlist value to query parameter?

Thread ID:





121759 Jan 21,2016 05:01 PM Jan 25,2016 09:55 AM LightSwitch HTML 1
Tags: DropDownList
Jeremy Chong
Asked On January 21, 2016 05:01 PM

I'm having trouble passing the value selected in the drop down list to a screen query parameter.  Any thoughts?

Kalai Selvi Rajendran [Syncfusion]
Replied On January 25, 2016 09:55 AM

Hi Jeremy,

As you have requested, we can pass the selected value in the DropDownList to the next screen by using the following code snippet


myapp.BrowseCustomers.Customers_render = function (element, contentItem) {

    var input = $('<input />');

    input.attr('id', 'Customers');

    input.attr('data-role', 'none');


    contentItem.value.oncollectionchange = function (){

        var first = contentItem.children[0];

        var label = first.children[0].valueModel.name;

        var value = first.children[1].valueModel.name;

        if (input.hasClass('e-dropdownlist')){input.ejDropDownList('destroy');}

        input.ejDropDownList({dataSource: contentItem.value.data,

            fields: { text:label,value:value},

            change: function (args) { contentItem.value.selectedItem = contentItem.value.data[args.itemId];} });


myapp.BrowseCustomers.Navigate_execute = function (screen) {

    // Write code here.

    var obj = $("#Customers").ejDropDownList("instance");

    var selectedData = obj.getSelectedValue();

    myapp.showScreen("Navigate", [selectedData]);



If you have any other queries, please let us know.


Kalai Selvi


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.