Here we go , this is my question and i can't find something to resolve it.
The problem that i have this template(for data-Binding) for my Gridview:
<div id="mytemplate" data-win-control="WinJS.Binding.Template"> <div id="questions" class="tweet"> <img src="#" style="-ms-grid-row-span: 2; width: 64px; height: 64px; margin-right: 10px;" data-win-bind="src:picture_url"> <h2 style="width:auto;-ms-grid-column: 2; -ms-grid-column-span: 1; margin-left: 1px; margin-right: 0px; -ms-grid-row-span: 2;" data-win-bind="textContent:type"></h2> <label id="answer" ">Message</label> </div> </div>
In all items , i have Message as a label
So when i click to an item , in the itemInvokedHandler(eventObject) function , i make show a Flyout which contains an input text and i want that this label will change from my input text field from the Flyout.What is the solution for that.
Just , i am thinking about moving the label tag outside of the template but it's not logical because it want a label for each item.
Any suggestion or help will be well appreciated.