Hi,
I am using RadTabstrip and Raddropdownlist.
Whenever the RadTabstrip is selected, the values selected in dropdownlist should be cleared, but i notice whenever i use the categoryList.get_selectedItem().unselect(); it causes to postback. How to cancel the post back ?
I am using this code below
<script type="text/javascript">
function OnClientTabSelected(sender, eventArgs)
{
var tab = eventArgs.get_tab();
var categoryList = $find("<%=rdddlCategory.ClientID %>");
if (categoryList.get_selectedItem()) {
//categoryList.get_selectedItem().set_selected(false);
categoryList.get_selectedItem().unselect();
}
}
function OnClientCategorySelected(sender, eventArgs) {
alert();
var tabstrip = $find('<%= rdTpEvents.ClientID %>');
if (tabstrip.get_selectedTab().get_text() != "Latest" && tabstrip.get_selectedTab().get_text() != "Working") {
eventArgs.set_cancel(true);
}
}
</script>