jQWidgets Forums

jQuery UI Widgets Forums Lists ListBox Data not displayed thru dataAdapter

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Data not displayed thru dataAdapter #78699

    bindu
    Participant

    Hi I am trying to implement Bind jqxGrid to MySQL Database using JSP with my SQL db.Somehow i could not see the data displayed.I could see the data displayed in json format but it is not retrieved through adapter.

    jqListBox.html

    $(document).ready(
                function () {
                    var source = {
                        datatype: "json",
                        datafields: [
                                     { name: 'name',type: 'string'},
                                     { name: 'emailID',type: 'string'}
                                     ],
                        id:'empID',
                        url: 'select-data.jsp',
                        async: true
                    };
                    var dataAdapter = new $.jqx.dataAdapter(source);
                    $("#jqxListBox").jqxListBox({
                        source: dataAdapter,
                        width: 300,
                        height: 300,
                        selectedIndex: 0,
                        displayMember: 'name',
                        valueMember: 'emailID'
                    });
                });
        </script>

    My db has three fields empID(primary key),name,emailID.When i try to run the jqListBox.html it is displaying only blank screen.Help me i tried many ways in resolving the issue but no vain

    Data not displayed thru dataAdapter #78701

    Mariya
    Participant

    Hi bindu,

    Please take a look at the provided demo for the jqxListBox at: http://www.jqwidgets.com/jquery-widgets-demo/demos/php/listbox.htm?arctic

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.