Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8533

Binding an XML list control to a JSON model

$
0
0

Hi All.

 

I am trying to bind an XML list control to a JSON model so that the JSON model will populate the child objects in the list with the required image and label. I have a few screenshots showing my code. I am unsure as to whether I am referincing my JSON model file incorrectly or whether the items in the view are referenced incorrectly.

 

Any assistance would be greatly appreciated.

 

This is the view

MainView.jpg

This is the controller for the view and here I instantiate the model

Controller.jpg

This is the content of the model. The format seems to be corret. The image path is also correct.

ShortDataModel.jpg

This is the current preview of the application itself. Under Short Period there should be two options namely option1 and option2 and I require that the labeltext and the image gets shown.

AppPreview.jpg

 

This is the layout of my project.

ProjectExplorer.jpg


Viewing all articles
Browse latest Browse all 8533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>