Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 15, 2010 09:54 AM by wendellm
Member
35 Points
29 Posts
Jun 15, 2010 09:54 AM|LINK
Hello All,
I need some help on how to make my items on the mobile object list editable. Please see code sample snippet below for my object list:
<mobile:ObjectList Runat="server" ID="ObjListSample" ItemsPerPage="10"> <DeviceSpecific ID="DsSample" Runat="server"> <Choice Filter="isHTML32"> <HeaderTemplate> <table style="font-size: 10pt"> <tr style="font-weight: bold;"> <td>Last Name</td> <td>First Name</td> <td>Status</td> <td></td> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td><%# Eval("LastName")%></td> <td><%# Eval("FirstName")%></td> <td><%# Eval("Status")%></td> <td>EDIT</td> </tr> </ItemTemplate> <AlternatingItemTemplate> <tr style="background-color: #ccc"> <td><%# Eval("LastName")%></td> <td><%# Eval("FirstName")%></td> <td><%# Eval("Status")%></td> <td>EDIT</td> </tr> </AlternatingItemTemplate> <FooterTemplate> </table> </FooterTemplate> </Choice> </DeviceSpecific> </mobile:ObjectList>
I know it can be editable using the <Command> tag under the object list and by putting ItemCommand on it but I think it is only applicable when not using templates like the above sample correct me if I am wrong.
Thanks in advance!
wendellm
Member
35 Points
29 Posts
Editable ObjectList
Jun 15, 2010 09:54 AM|LINK
Hello All,
I need some help on how to make my items on the mobile object list editable. Please see code sample snippet below for my object list:
<mobile:ObjectList Runat="server" ID="ObjListSample" ItemsPerPage="10"> <DeviceSpecific ID="DsSample" Runat="server"> <Choice Filter="isHTML32"> <HeaderTemplate> <table style="font-size: 10pt"> <tr style="font-weight: bold;"> <td>Last Name</td> <td>First Name</td> <td>Status</td> <td></td> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td><%# Eval("LastName")%></td> <td><%# Eval("FirstName")%></td> <td><%# Eval("Status")%></td> <td>EDIT</td> </tr> </ItemTemplate> <AlternatingItemTemplate> <tr style="background-color: #ccc"> <td><%# Eval("LastName")%></td> <td><%# Eval("FirstName")%></td> <td><%# Eval("Status")%></td> <td>EDIT</td> </tr> </AlternatingItemTemplate> <FooterTemplate> </table> </FooterTemplate> </Choice> </DeviceSpecific> </mobile:ObjectList>I know it can be editable using the <Command> tag under the object list and by putting ItemCommand on it but I think it is only applicable when not using templates like the above sample correct me if I am wrong.
Thanks in advance!