Quantcast
Viewing all articles
Browse latest Browse all 8068

Set List view item template value at run time

Hi My list view has the following template and i am using data collection to populate the list view:

ListView id="listView" defaultItemTemplate="template1"   >
            <Templates >
                <ItemTemplate class="span1 top2 cellbackgrd" name="template1" height="220">
 
                    <Label bindId="jobDescription" left="3%" top="5%"  class="itemTitle" />
 
                    <Label bindId="statusLabel" left="60%">Here</Label>
 
 
 
                </ItemTemplate>
            </Templates>
            <ListSection id="section" dataCollection="job" dataTransform="transformFunction">
                <ListItem  jobDescription:text="{post_name}"></ListItem>
            </ListSection>
The second label with bindId='statusLabel' i want to set its value at run time and i tried this but it is not getting set:
ollection.each(function(oneModel) {
 
 
                statusLabel:{
                    text:displayStatus;
                }
 
            });
where displayStatus is a calculated value(string value obtained after manuplations).

Viewing all articles
Browse latest Browse all 8068

Trending Articles