Answered by:
Why is this listview not showing

Question
-
I have copied a semantic zoom sample and trying to adapt it to my needs, but I haven't got very far. can anyone tell me why the listviews are not showing, it must be something very simple but I cant seem to spot it thanks
Alan Mosley - ThatsIT Solutions
Thursday, June 11, 2015 12:36 PM
Answers
-
Hello Alan Mosley,
It is not working because your myGroupedList variable is in load function right now in js fiddle. and wont be available globally. You can use WinJS.Namespace.define (https://msdn.microsoft.com/en-us/library/windows/apps/br212667.aspx?f=255&MSPPError=-2147217396) function to make it available globally by giving it a namespace.
After that you can change the itemtemplate’s datasource accordly.
Here is the working jsfiddle : http://jsfiddle.net/y3o2hvL4/15/
Here is a universal app demo: https://onedrive.live.com/redir?resid=27fab974ac31445f!157&authkey=!AOJVrXzxjgFUJBM&ithint=file%2czip
Hope this helps.
With Regards,
Krunal Parekh
- Edited by KrunalParekh Friday, June 12, 2015 9:55 AM
- Proposed as answer by Christian AmadoMVP Monday, June 15, 2015 12:19 PM
- Marked as answer by Alan Mosley Tuesday, June 16, 2015 12:06 AM
Friday, June 12, 2015 9:54 AM -
Thanks Krunal for taking the time, that works a treat.
Alan Mosley - ThatsIT Solutions
- Marked as answer by Alan Mosley Friday, June 12, 2015 3:15 PM
Friday, June 12, 2015 3:15 PM
All replies
-
I have copied a semantic zoom sample and trying to adapt it to my needs, but I haven't got very far. can anyone tell me why the listviews are not showing, it must be something very simple but I cant seem to spot it thanks
Alan Mosley - ThatsIT Solutions
Can you shared your code? What did you try?
Regards.
Christian Amado
Software Engineer | MCPD: Windows Phone Developer | MCTS: Silverlight Developer
Don't forget to mark the right answer and vote up if helps you.
MCP Profile
My code samplesThursday, June 11, 2015 3:23 PM -
Thursday, June 11, 2015 3:27 PM
-
Hello Alan Mosley,
It is not working because your myGroupedList variable is in load function right now in js fiddle. and wont be available globally. You can use WinJS.Namespace.define (https://msdn.microsoft.com/en-us/library/windows/apps/br212667.aspx?f=255&MSPPError=-2147217396) function to make it available globally by giving it a namespace.
After that you can change the itemtemplate’s datasource accordly.
Here is the working jsfiddle : http://jsfiddle.net/y3o2hvL4/15/
Here is a universal app demo: https://onedrive.live.com/redir?resid=27fab974ac31445f!157&authkey=!AOJVrXzxjgFUJBM&ithint=file%2czip
Hope this helps.
With Regards,
Krunal Parekh
- Edited by KrunalParekh Friday, June 12, 2015 9:55 AM
- Proposed as answer by Christian AmadoMVP Monday, June 15, 2015 12:19 PM
- Marked as answer by Alan Mosley Tuesday, June 16, 2015 12:06 AM
Friday, June 12, 2015 9:54 AM -
Thanks Krunal for taking the time, that works a treat.
Alan Mosley - ThatsIT Solutions
- Marked as answer by Alan Mosley Friday, June 12, 2015 3:15 PM
Friday, June 12, 2015 3:15 PM