I am trying to convert my declarative RadConfirm template over to a class and have followed the steps outlined here (twice):
http://www.telerik.com/help/aspnet-ajax/window_dialogschangingthedialogtemplates.html
but it's not working.
When putting the code into the page_load event I get an error on this line:
Me.RadWindowManager1.ConfirmTemplate = New ConfirmTemplate(Me.Page)
The error is:
Error 5 Type 'ConfirmTemplate' is not defined.
My class file is (ascx):
and (ascx.vb):
I have followed the example exactly also (using c#) with an AlertTemplate and got the same error.
I would welcome any assistance with this - thanks.
http://www.telerik.com/help/aspnet-ajax/window_dialogschangingthedialogtemplates.html
but it's not working.
When putting the code into the page_load event I get an error on this line:
Me.RadWindowManager1.ConfirmTemplate = New ConfirmTemplate(Me.Page)
The error is:
Error 5 Type 'ConfirmTemplate' is not defined.
My class file is (ascx):
<%@ Control Language="VB" ClassName="ConfirmTemplate" %> |
<div class="rw_Confirm_Wrapper"> |
<div class="rw_ConfirmText"> |
{1} |
</div> |
<div class="rw_ConfirmButtonsWrapper"> |
<div class="rw_ConfirmButtons" style="float: left;" onclick="$find('{0}').close(false);"> |
Cancel</div> |
<div class="rw_ConfirmButtons" style="float: right;" onclick="$find('{0}').close(true);"> |
Proceed</div> |
</div> |
</div> |
and (ascx.vb):
Class ConfirmTemplate |
Implements ITemplate |
Private _page As Page |
Public Sub New(ByVal page As Page) |
Me._page = page |
End Sub |
Sub InstantiateIn(ByVal owner As Control) Implements ITemplate.InstantiateIn |
Dim ctrl As Control = _page.LoadControl("ConfirmTemplate.ascx") |
owner.Controls.Add(ctrl) |
End Sub |
End Class |
I have followed the example exactly also (using c#) with an AlertTemplate and got the same error.
I would welcome any assistance with this - thanks.