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

RadMagnifier control

1 Answer 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
michael evans
Top achievements
Rank 1
michael evans asked on 25 Jan 2009, 06:29 PM
I'm creating buttons in this control dynamically when a certain event occurs. When this happens i then want to access that buttons properties that i just created. How can i access this buttons properties that was set programmatically. So when the user click on one of the buttons i need to access its properties.But when i try to use the "click event" of the Radmagnifier it dosent give me the controls instance.

How do i access these items?

1 Answer, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 27 Jan 2009, 01:09 PM
Hello michael evans,

Thank you about writing us.

I have a solution about the described case. It is the following:
Subscribe to the Click event of the buttons you create, then create only one common event handler for all of the buttons. Then you can cast the sender to a button and get access to all of its events, properties, etc.

I hope this helps.
Please contact us again if you have more questions.

All the best,
Boyko Markov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
michael evans
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or