Ext JS 4 Basic Grid Example Gets JSON Value - extjs4

Is there any simple example that takes data from a link that is a JSON array and shows it a basic grid table at Ext JS 4?

This simple example loads json data into grid using ajax proxy.

Related

how to generate datatable headers from data

I am using datatables and currently putting the header and footer data in using HTML. I would like to make it more dynamic but can't seem to find a way to generate the headers from JSON data returned in the AJAX. Is there a way to do this?

Simple data populate data with Kendo UI

Hello I'm quite new to Kendo UI so my question is probably simple as well.
I am working with datasource of Kendo UI (Javascript) that reads a simple JSON object from a remote source, what works fine.
I struggle now with populating the data into single text fields within the HTML page. I find some example on Kendo UI documention talking about "template", "model", "columns", "binding", etc. but there is nothing I think I can adapt it to my needs. All examples I find are focussed on Kendo Widgets or "grid", what is not what I want.
Example:
I read the JSON by "datasource" object from remote source, looking like this:
[{"productid":"30","title":"apple"}]
In my HTML there are two input fields, one with ID="productid" and another one with ID="title"
I don't need a precise code solution just a hint/link how to proceed to populate the JSON elements into the value attributes of the two input fields. If this is possible is there also the other way possible like storing the values of the input fields back to a datasource and send it back to remote server for saving/updating purposes?
Any hint is welcome!

Chart Integration in YII Framework

Is there any way by which we can show the grid column data in a chart in YII framework? How can I fetch data from database based upon a query and show it in a chart.
You can get data from database with use of YII functions. Pass data to JS chart function as json array.
Highcahrt extension available for yii in below link.
http://www.yiiframework.com/extension/yii2-highcharts-widget/
Other charts widely used with YII:
http://www.yiiframework.com/extension/yii-chartjs/
http://www.yiiframework.com/extension/googlechart/
http://www.yiiframework.com/extension/eamchartwidget/

Windows Phone 8: Load/Create HTML on the fly and load into browser

I am working on an app that reads XML and displays content accordingly with whats contained n the XML. Now i have the XML part done but i need one other part and that is to load a Small section of html code into a web browser element. Is there anyway for me to either dynamically create a html file (i was thinking maybe create one and save in storage then load from there?) or directly insert code into the web browser element.
Failing this i'll just create a php page on my server that adjusts according to value its passed.
You can store your entire HTML code in a string variable and call the NavigateToString method.
myWebBrowser.NavigateToString("myHTMLcode")
How you create the HTML string depends on your app but you could store a basic template and use String.Replace to replace any particular items in the code.

Getting a FormPanel as well as GridPanel as a single JSON Store

How can I post a FormPanel as well as an EditorGrid ( Grid Panel) as a single JSON object in ExtJS with Rails 3.0.3?
For Ex: I have a FormPanel and a GridPanel, when it's submitted, it goes as a single JSON Store into the controller.
P.S: Any way to do that without using Arrays?
Thanks in advance !
you might want to split the submit event into two elements.
In other words, you can encapsulate the form and the grid on 2 separate elements you can check for all fields during the submit. That would create 2 separate post events.
However, why would you want to do that. you should just redirect the events of each individually as an action happens.
And no, extjs formats everything in a JSON that you would have to decode out to break the array.