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

Useing RadWindowManager in a ascx-file

5 Answers 117 Views
Window
This is a migrated thread and some comments may be shown as answers.
Henrik Tegman
Top achievements
Rank 1
Henrik Tegman asked on 29 Sep 2010, 04:06 PM
Hello,

I wanted to use a RadWindow and so I followed the tutorial posted here:
http://www.telerik.com/help/aspnet-ajax/window_gettingstarted.html

But I already had a project so I tried to use that one, and I wanted my RadWindowManager and the windows to be in a ascx file.
I'm createing a control that has a simple dropdown and some button and when one of the buttons are pressed a popup is supposed to show where the user can put in some data. BUT I can't get the RadWindowManager to work in this ascx.

To test this component I have a default.aspx where I put it just to test things out, and when I moved the RadWindoManger to that page then it worked right away, but that is not the way I want it. I want my component to be complete so to say, I want to just drag in this component into another project and then it will have the dropdown, the buttons and also the fuctionality to open up radwindows.

Does it have something todo that the ascx isn't telerikcompatible?
I have a RadScriptManager on my default.aspx but I can't add another to the ascx, and it shouldn't need one either as I understand.

Any help would be very helpful.
Thank you in advance!

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 30 Sep 2010, 07:27 AM
Hi Henrik,

Could you please share the code of the user control?

Regards,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Henrik Tegman
Top achievements
Rank 1
answered on 30 Sep 2010, 07:30 AM

 <asp:Button ID="ButtonCreate" runat="server" Text="Create" /> 

 

<

 

asp:Button ID="ButtonEdit" runat="server" Text="Edit" />  

 

 

<

 

telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista">

 

 

<Windows>

 

<telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Default" InitialBehavior="None"

 

NavigateUrl="AdressEditor.aspx" OpenerElementID="ButtonCreate" Title="AdressEditor">

 

</telerik:RadWindow>

 

<telerik:RadWindow ID="RadWindow2" runat="server" Behavior="Default" InitialBehavior="None" Title="Telerik"

 

OpenerElementID="ButtonEdit" NavigateUrl="http://www.telerik.com">

 

</telerik:RadWindow>

 

</Windows>

</

 

telerik:RadWindowManager>

As you can see it's just the basics, very simple.

 

 

 

 

 

 

0
Georgi Tunev
Telerik team
answered on 30 Sep 2010, 09:54 AM
Hello Henrik,

The reason for the problem is that you are using the ID property of the asp:Button control in OpenerElementID while the OpenerElementID expects a ClientID. Because you put that code in a user control, the asp:Button's ID differs from the ClientID hence the problem.
Note that the OpenerElementID / OffsetElementID properties are intended to be used in very simple scenarios only. More information on the subject is available in the documentation and in the description of the corresponding demo.

Sincerely yours,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Henrik Tegman
Top achievements
Rank 1
answered on 30 Sep 2010, 11:56 AM
Thank you so much.

And thanks for the fast answers I'm used to waiting days or weeks for an answer here but this was very fast!
Solved my problem.
0
Georgi Tunev
Telerik team
answered on 30 Sep 2010, 12:59 PM
Hello Henrik,

I am glad I was able to help. Note that although we closely monitor our forums, we cannot guarantee a timely reply here. If you need quick assistance, it is best to use the support ticketing system where you have a guaranteed response time according to your license.


Sincerely yours,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Henrik Tegman
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Henrik Tegman
Top achievements
Rank 1
Share this question
or