I have json data array (shown below) and would like to display in Mobile ist View Control, something like this:
data-item-template="<div> <span> array element 1</span> <span>array element 2 </span> </div>"
Note: I have simplified to understand problem, data displayed is very complex and around 50 array elements.
Json Data:
{
"browseData": [
[
"10S10010",
"10C1000",
"Z"
],
"SO011203",
"A"
]
}
I have one more question on igList (not ingListView), how do I format dates & logical values using customBindings in igList? I tried using format attribute, but no luck, there is no samples available also.
Please Let me know.
Hello annasaheb,
Thank you for your reply.
Glad that the issue has been resolved.
Please feel free to contact me if you have any additional questions regarding this matter.
I got it working, need to use "igList" instead of "igListView". Thanks for your help.
Thanks for quick answer, but I didn't follow your answer, so you are suggesting to remove data-role from html and leave <ul> tag correct? If I do that it shows error " Uncaught Error: There was an error parsing the JSON string: Unexpected token b"
HTML CODE:
<ul id="templateListView1" class="templateListView">
</ul>
Hi,
If you want to instantiate in html, that is fine, but get rid of the data-role attribute on the html element so it's only instantiated once. You might get the first instantiation without the item template.
regards,David Young