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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to pass dropdownlist value to query parameter?

Thread ID:





121759 Jan 21,2016 10:01 PM UTC Jan 25,2016 02:55 PM UTC LightSwitch HTML 1
Tags: DropDownList
Jeremy Chong
Asked On January 21, 2016 10:01 PM UTC

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 02:55 PM UTC

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon