Posts

Showing posts from March, 2011

Charts, JSON and ExtJS

A bit late, I admit, but finally I've started using Sencha's ExtJS framework. The first project I was executing was involving charts with JSON data loaded from a C# ASP.NET WCF service. I have encountered several problems and a lack of proper documentation. Many of the solutions were finally found in another websites and forums but there was no blog post I have found that had everything together in one example. So I'm proud to be one of the first who does that. I will also describe the problems I've encountered and of course - the solutions. In ExtJS, the code is created in Windows , Panels or Forms . The latter, Form , can not be added to Asp.net page as it regenerates a <form> tag, which can not be placed under the already-generated <form runat="'server'"> of the asp.net. I've used the Ext.Panel then, in an external JS file, like so: Ext.onReady(function () { var myPanel = new Ext.Panel({ }); }); inside the panel, among the rest o