Hello.
I have Ultimate 11.2 and am trying to bind data to a webdatagrid on the client.
I've been all over the place and all the examples show a call the the grid's "applyClientBinding()" method.
However, when I run it I get the following error:
Microsoft JScript runtime error: Object doesn't support property or method 'applyClientBinding'
Here's my code ("result" is the result of an Ajax call and is an array of custom objects):
if (wdg != null) {
wdg.set_dataSource(result);
wdg.applyClientBinding();
}
Please advise.
Thank you,
Mike
Dave,
I've downloaded the jQuery templating engine from here: https://github.com/jquery/jquery-tmpl/downloads
I've added a refrence to it and now get this error: Microsoft JScript runtime error: Object doesn't support property or method 'tmpl'
What am I missing here?
Thanks,
You need the jQuery templating engine that Microsoft had started to develop. It's stuck permanently at Beta apparently. Just search on google for jquery template and you'll find it. It's a plug-in.
-Dave
Hi, David.
No, I didn't set EnableClientRendering to True. It's set now. Thanks.
As for jQuery, I have a reference to "jquery-1.4.1.min.js". Is there another reference that I need? Where do I get it?
Hi Mike,Have you set EnableClientRendering to true? Have you included references to jquery core and jquery templating engine?
regards,David Young