I had a button added to the list row template.  But when new rows are
added there isn't any unique identifier added for these elements.  So
I just took the Event object passed in, got the target, and then moved
two parent levels to get the row.  At that point I was able to adjust
the height.  I'm not sure this is the correct way to modify the style,
but setProperty is failing.  Below is the code I'm using to adjust a
row when a button on it is clicked, like expanding details of a row :)


function expandDetail(event)
{
    var rowID = event.target.offsetParent.offsetParent.id;
    var arow = document.getElementById(rowID).object;

    if(arow.templateElements.listRowTemplate2.style.cssText == "" ||
arow.templateElements.listRowTemplate2.style.cssText == "height: 47px;
")
    {
        arow.templateElements.listRowTemplate2.style.cssText =
"height: 213px";
    }
    else
    {
        arow.templateElements.listRowTemplate2.style.cssText =
"height: 47px";
    }

}

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to