This content has been marked as final. Show 4 replies
Refresh responseData at the end of the addQuestion method:
The refresh() method is intended to be used with filters or sorts and causes the sort or filter to be re-applied to the collection.
If that works here, it is a side effect.
Using AddItem *should* be all that is necessary. I don't use inline renderers and binding because they are hard to debug.
If you add one more thing to your item render:
..you'll see some interesting behavior when you:
1) change a value in the first combobox to "b", and then add a new item to the List.
2) change that same combobox back to "a", then add another new item to the List.
Note the value shown in the new text box. Weird stuff, but it does look like an issue with either the dataprovider not updating, or the combo box not updating.
Thank you Greg, the .refresh() function solved all of the rendering issues. I had had similar rendering issues with dynamically modified tree controls, and I remembered that the .validateNow() function had to be used to re-render the control after any changes. I had tried that with this list control, but to now avail. I'll have to look at the differences between these two functions, what they're used for, and what problems they are intended to solve.