Good Morning All,
I have a basic question that should be pretty easy. I have a class file that is a WebControl class file and in the OnInit I create a window object it is a telerik control RadWindow. So that RadWindow has a ContentTemplate which is a ITemplate that I had to create a seperate class and use the ITemplate interface such as System.Web.UI.ITemplate. In the instantiate of that I have all content controls I need etc. I have a button in this template that has to go into the contenttemplate so it needs to exist here. On the OnClick event handler I need to call the RadWindow property to close it RadWindow.VisibleOnPageLoad = false. Stupid question is how do I call that from within the ITemplate when it is being created on the OnInit of my main class? I tried doing such as this in the close button event:
MyMainClass mycls = new MyMainClass();
mycls.RadWindow1.VisibleOnPageLoad = false
but I am getting NULL for that RadWindow1 when I do this so I know it is the new I beleive. Thanks all not sure why this is confusing me.