View Full Version : Toggle.setValue() and NestedList.Add() Problems

30 Jul 2010, 10:29 AM
Hey there,

I am trying to make an app which takes some info from a server using JSON and changes a nested list and a slider based on it. However, I can't seem to be able to set toggle values, or add things to a nested list in the callback function of the Json request. Here is some of the code I am using to do this:

Here is how I am trying to set the sliders:


and here is how I am trying to add to the Floating nested list:

var temp = Ext.getCmp('NestedListID').add(
text: 'someText',
handler: showCenteredOverlay


However, when I try to set the value of the toggle it completely stops the callback function and the app freezes, and if I try to do an add to the nested list the callback finishes, but the add does not happen. Does anyone have any ideas as to what I'm doing wrong? Any help would be greatly appreciated. Thanks beforehand!


30 Jul 2010, 9:51 PM
It's a little bit vague to offer any suggestions, have you tried running it in the debugger? Does it throw any errors?

Try and post some code we can run locally.