Posted 07 Jun 2012 Link to this post
this.imgCreateStoreList.Attributes.Add("onclick", "openWinEvents('Events.aspx?Designator=" + desParameter + "&ctProcessId=" + ctProcessId + "&rnd=" + System.Guid.NewGuid() + "'); return false;");
function openWinEvents(parameter) {
var wnd = $find('<%=RadWindow1.ClientID %>');
if (wnd != null) {
wnd.setUrl("/Builder/" + parameter + "");
wnd.setSize(800, 600);
wnd.set_modal(true);
wnd.set_iconUrl("/img/radwindowicon.gif");
wnd.Show();
}
RadWindow CommPromptWindow = (RadWindow)Page.Master.FindControl("EventsPromptWindow");
CommPromptWindow.VisibleOnPageLoad = true;
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
"server"
>
Windows
telerik:RadWindow
"RadWindow1"
VisibleOnPageLoad
"true"
ContentTemplate
telerik:RadButton
"RadButton1"
onclick
"RadButton1_Click"
</
"RadWindow2"
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadButton1.Attributes.Add(
"onclick"
,
"openWinEvents('Events.aspx?Designator="
+ desParameter +
"&ctProcessId="
+ ctProcessId +
"&rnd="
+ System.Guid.NewGuid() +
"'); return false;"
);
<script type=
"text/javascript"
function
openWinEvents(parameter) {
var
wnd = $find(
'<%=RadWindow2.ClientID %>'
if
(wnd !=
null
) {
wnd.setUrl(
"/Builder/"
+ parameter +
""
wnd.set_modal(
true
wnd.set_iconUrl(
"/img/radwindowicon.gif"
</script>