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

Reusing UserControls

1 Answer 27 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Erwin
Top achievements
Rank 1
Erwin asked on 26 May 2010, 03:49 AM
Hello

I have a user control with telerik conponents inside.
I have a clientside event on click with one of the controls inside the usercontrol and it triggers a javascript.

My problem is that when i add  a telerik:RadMultiPage then i add the usercontrol in the first tab then the same usercontrol in the second tab, when i click on the controls of the first tab the javascript of the second tab fires.

what should i do?
I traced it and found out that i have 2 javascript with the same name since i reuse a usercontrol.

is there a blocker so to make my javascript fire only inside the usercontrol and will not go to other javascript with the same name

thanks 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 26 May 2010, 03:03 PM
Hello Erwin,

Please check this kb article - it explains how to deal with reused user controls.

Kind regards,
Yana
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
General Discussions
Asked by
Erwin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or