jQuery UI Widgets Forums Lists DropDownList getSelectedValue on PageLoad

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 8 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • getSelectedValue on PageLoad #81060


    Hi guys,

    I cannot getSelectedValue from jqxDropDownList on page load.

            var myURL2 ='phase2/HourlyAnalysis_data.php?e=2'; 
            var srcYears =
                url: myURL2,
                datatype: 'json',
                cache: false,
                async: true,
                datafields: [
        		  { name: 'year', type: 'number' },
            var daYears = new $.jqx.dataAdapter(srcYears);  
          		source: daYears,
                selectedIndex: 0, 
                theme: theme,
                displayMember: 'year',
                width: '100px'
    var year = $("#ddlYears").jqxDropDownList('getSelectedItem').value; //on this line I get undefined dropdownlist....

    Variable year cannot be assigned.
    Am I doing something wrong?
    One more thing. If I use localData everything works ok.

    getSelectedValue on PageLoad #81061


    Hello atomic,

    Everything seems fine. Looks like you do not receive data from server.

    Best Regards,
    Hristo Hristov

    jQWidgets team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.