btpoole
8 years agoChannel Surfer
Refresh Grid View
Maybe missing something. Is there a way to refresh or update a markupgrid without calling the scene again. For instance I have a markupgrid with contents set and displaying on screen. When a particular event occurs, the content node of the markupgrid is changed. Other than calling the scene, is there a way to reflect the content change in the markupgrid?
The component xml file has the field. This is basically a copy from the sdk for markupgrid.
I have an observerfield that triggers correctly and resets the content. I then reset the markupgrid content to the content but the markupgrid on the screen doesn't change. Something like
After content node has been changed I have the following in a function. I know the content is changed, I have checked this.
I can get it to work if I call my main scene again, which makes sense but that's not what I need to do. Calling the main scene again destroys everything and resets all elements. Thought there might be a refresh or redraw.
Thanks
The component xml file has the field. This is basically a copy from the sdk for markupgrid.
<field id="itemContent" type="node" onChange="itemContentChanged" />
I have an observerfield that triggers correctly and resets the content. I then reset the markupgrid content to the content but the markupgrid on the screen doesn't change. Something like
After content node has been changed I have the following in a function. I know the content is changed, I have checked this.
function refreshGrid()
m.myMarkupGrid = m.top.findNode("myMarkupGrid")
m.myMarkupGrid.content= m.global.posterx.shows
m.myMarkupGrid.SetFocus(true)
end function
I can get it to work if I call my main scene again, which makes sense but that's not what I need to do. Calling the main scene again destroys everything and resets all elements. Thought there might be a refresh or redraw.
Thanks