or
| <rad:RadGrid ID="RadGrid1" Skin="Vista" |
| AllowSorting="True" EnableAJAX="True" |
| PageSize="15" ShowFooter="False" AllowPaging="True" |
| AllowMultiRowSelection="False" runat="server" |
| DataSourceID="SDSPendingMailList" |
| GridLines="Both" |
| ShowHeader="false" HorizontalAlign="Left" |
| Width="350px" |
| > |
| <MasterTableView Height="300px" AutoGenerateColumns="False" |
| width="350px" |
| ClientDataKeyNames="EmailGUID" DataSourceID="SDSPendingMailList" > |
| <Columns> |
| <rad:GridTemplateColumn UniqueName="TemplateColumn"> |
| <ItemStyle Width="350px" Height="80px"/> |
| <ItemTemplate> |
| <div style="width:345px;overflow:hidden"> |
| <span style="font-weight:bold; text-decoration:underline;">From:</span> <%#Eval("SenderName")%> <img src="<%#Eval("MatchImage")%>" /><br /> |
| <span style="font-weight:bold; text-decoration:underline;">Sent:</span> <%#Eval("SentDate")%><br /> |
| <span style="font-weight:bold; text-decoration:underline;">Subject:</span> <%#Eval("Subject")%><br /> |
| </div> |
| </ItemTemplate> |
| </rad:GridTemplateColumn> |
| </Columns> |
| <PagerStyle Position="Top" Mode="NextPrevAndNumeric" VerticalAlign="Middle" /> |
| </MasterTableView> |
| <ClientSettings> |
| <Scrolling AllowScroll="true" UseStaticHeaders="false"></Scrolling> |
| <Selecting AllowRowSelect="True"></Selecting> |
| <ClientEvents OnRowSelected="RowSelected" /> |
| </ClientSettings> |
| <PagerStyle BorderStyle="None" VerticalAlign="Top" /> |
| </rad:RadGrid> |


| editor.AttachEventHandler("oncontrolselect", function() |
| { |
| // Introduce small delay |
| window.setTimeout(function() |
| { |
| // 1. Check if we have an image, |
| // 2. Get it's original dimensions and |
| // 3. install "onresizeend"-handler to constrains proportions |
| }, 100); |
| }); |
| $telerik.addExternalHandler(editor.get_document().body, "oncontrolselect", function() |
| { |
| // ... |
| }); |


// Interface
public interface IMetaAuthor
{
MetaAuthor Author {
get; }
}
string Author = ((IMetaAuthor)this.Page).Author;