I need to bind a infragistics jquery mobile grid control. I am not sure about the javascript files that are to be referenced. I am getting only script errors while trying to bind the grid. Please let me know on how to simply bind sample data to grid with the data from WCF service / Dataset in asp.net without MVC and with MVC
I am using the below coding in aspx page.
<%
%>
<!
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
="http://www.w3.org/1999/xhtml">
="server">
>
="javascript">
$.ig.loader({
scriptPath:
,
cssPath:
resources:
"igGrid.*"
});
products = [];
products[0] = {
};
products[1] = {
products[2] = {
products[3] = {
products[4] = {
products[5] = {
products[6] = {
products[7] = {
products[8] = {
$.ig.loader(
() {
$(
).igGrid({
height: 500,
columns: [
{ headerText:
},
],
autoGenerateColumns:
dataSource: products,
responseDataKey:
features: [
{
name:
type:
pageSize: 10
}
]
</
head>
body>
html>
But I am recieving script error as Object reference not set to instance of object in the line
$.type(options.dataSource)
Please let me know on how to resolve this error. Also I need to use WCF service. Please let me know on how to accomplish the same.
Hi,I see that you are using jquery 1.4.1. We support jQuery versions 1.4.4 and above. Also you are duplicating jQuery UI scripts. responseDataKey: 'Records" is not needed. The other code looks ok.Can you substitute jQuery and jQuery UI references with this CDN links and see if it works:
Hope this helps,Martin PavlovInfragistics, Inc.