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

[Solved] ListView, UserControl, RadWindow

1 Answer 135 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andrew Thompson
Top achievements
Rank 1
Andrew Thompson asked on 11 Jan 2010, 04:28 PM
I've created a userControl that has an imagebutton. Attached to that is a RadWindow via the OpenerElementID of the imagebutton. That popups a window with the required aspx page (in this case ImageSelector.aspx). When that form is closed it returns the path of the image selected. And then updates the image in the imagebutton.

All works great. Except when I had another usercontrol. Then when I click on the imagebutton of the second control does not fire.

When I check out the rendered HTML i see two identical usercontrl rendering including the same openerElementID and JavaScript callback function.

I think what I need is a method to supply the 'calling' control id to the imageselector.aspx so that it can return it in the arguments coming back.

(note I've used both ASP.NET ImageButton and HTML img element and have the same problem).

Thanks.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 12 Jan 2010, 12:27 PM
Hello Andrew,

You should use RadWindow's client-side API instead of OpenerElementID - OpenerElementID is intended to be used in simple scenarios only (more information on the subject is available in this demo's description). You can check the Opening Windows help article for more information on how to open RadWindow in different scenarios. The Using RadWindow as a Dialog help article will also help you get started.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Andrew Thompson
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or