<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<script type="text/javascript"> |
function ShowMessage(url) { |
var win = GetRadWindowManager().GetWindowByName("Message"); |
win.SetUrl(url); |
win.SetSize(600, 430); |
win.Show(); |
} |
</script> |
<span style="font-size:medium; font-weight:bold"><asp:Label ID="lblTitle" runat="server" Visible="false"></asp:Label></span> |
<br /><br /> |
<asp:GridView ID="gvMessages" runat="server" AllowPaging="True" AllowSorting="False" AutoGenerateColumns="False" onpageindexchanging="gvMessages_PageIndexChanging"> |
<PagerSettings Mode="NextPreviousFirstLast" |
FirstPageImageUrl="~/DesktopModules/Message/Images/first.gif" |
FirstPageText="First" |
LastPageImageUrl="~/DesktopModules/Message/Images/last.gif" |
LastPageText="Last" |
NextPageImageUrl="~/DesktopModules/Message/Images/next.gif" |
NextPageText="Next" |
PreviousPageImageUrl="~/DesktopModules/Message/Images/previous.gif" |
PreviousPageText="Previous" /> |
<Columns> |
<asp:TemplateField> |
<ItemTemplate> |
<div id="divMessageTitle" style="overflow: hidden; width: 150px; text-overflow: ellipsis" Wrap> |
<asp:Literal ID="ltMessageTitle" runat="server" Text='<%# FormatTitle(Eval("MessageTitle"), Eval("MessageStyle")) %>'></asp:Literal> |
</div> |
<a href='#' style="font-size:10px" onclick="ShowMessage('<%# Page.ResolveUrl("~/DesktopModules/Message/Message.aspx?msgid=" + Eval("MessageId")) %>');">[more]</a> |
<br /> |
<br /> |
</ItemTemplate> |
</asp:TemplateField> |
</Columns> |
</asp:GridView> |
<asp:Literal ID="ltContent" runat="server"></asp:Literal> |
<br /><br /> |
<telerik:RadWindowManager ID="Singleton" runat="server" Skin="Outlook"> |
<Windows> |
<telerik:RadWindow ID="Message" runat="server" Modal="True" Behavior="Close" /> |
</Windows> |
</telerik:RadWindowManager> |
This is the code which I am using to show a popup on radwindow through javascript but when I run the page the var win = GetRadWindowManager().GetWindowByName("Message"); returns null
please help me on this, the version I am using is 2009.2.826.35
Regards,
Roshin.K