This question is locked. New answers and comments are not allowed.
After upgrading to 2011.1.315 we encountered a strange issue: client-side events like onSelect would be triggered in multiple controls on the page, like they are bubbling up.
I created a basic project using Telerik template for MVC3, put a menu and a tabstrip on a page, and wired their onSelect events each to a different handler:
What happens is when i click on a menu item - only mnuOnSelect is firing, which is what you would expect.
However if a tabstrip is clicked, it fires tabsOnSelect and then mnuOnSelect.
Any clue on what is going on here? For this stripped down project I am using jQuery 1.4.4
Thank you!
Vlad
I created a basic project using Telerik template for MVC3, put a menu and a tabstrip on a page, and wired their onSelect events each to a different handler:
<%: Html.Telerik().Menu()
.Name("menu")
.ClientEvents(e => e.OnSelect("mnuOnSelect"))
.Items(menu => {
menu.Add().Text("Menu1");
menu.Add().Text("Menu2");
})
%>
<%: Html.Telerik().TabStrip()
.Name("tabs")
.ClientEvents(e => e.OnSelect("tabsOnSelect"))
.Items(tabs => {
tabs.Add().Text("Tab1");
tabs.Add().Text("Tab2");
})
%>
<script type="text/javascript">
function mnuOnSelect(e) {
alert("mnuOnSelect");
}
function tabsOnSelect(e) {
alert("tabsOnSelect");
}
</script>
What happens is when i click on a menu item - only mnuOnSelect is firing, which is what you would expect.
However if a tabstrip is clicked, it fires tabsOnSelect and then mnuOnSelect.
Any clue on what is going on here? For this stripped down project I am using jQuery 1.4.4
Thank you!
Vlad