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