This is a migrated thread and some comments may be shown as answers.

Server-side management

1 Answer 52 Views
Window
This is a migrated thread and some comments may be shown as answers.
Francis
Top achievements
Rank 1
Francis asked on 16 May 2011, 09:15 PM
Hey, once again I'm having some issues getting what I want. I need to create RadWindows and set their properties in my code-behind page, because I need to put an ID which I will be able to use to show/hide my windows later. So what I've done at the moment, is calling a static function in my code behind, from Javascript. Then I create the window and set the properties, and from the instance I stocked in a variable in the public constructor, I call a non-static method. Then, I add my newly created window in my RadWindowManager. The problem is that my object reference is not set to an instance of an object. Is there any other way I can get it to work ?

Thanks in advance,
Francis

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 18 May 2011, 12:20 PM

Hello Francis,

I am not sure what your scenario is, but it seems that you are trying to create RadWindows dynamically. For your convenience I created and attached a simple page that tries to mimic your requirements (call a static method that creates a window with some properties, add it to the manager in another method). The only part I'm having difficulties understanding is the call to the non-static method - the RadWindow does not have any server-side methods, so I cannot estimate what the issue you are having is.

If my page does not meet your requirements and you cannot use it as a basis for your development please provide some more information on your setup and code so that we can provide a more to the point answer.

On a side note - I believe you may find the following links useful



Best wishes,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
Francis
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or