Hi,
I have created a Sharepoint Webpart page with the RadComboBox. The controls display with their list ok.
I want the RadComboBox to fire a client javascript function but i can't get it to work. The mark up rendered to the page looks ok, but the event does not fire.
When I try this in a normal ASP page it works ok.
<script type="text/javascript">
//<![CDATA[
function OnDropDownListChanged_Area (sender, args) {
alert("Does not get to here");
}
}//]]>
</script>
I have created a Sharepoint Webpart page with the RadComboBox. The controls display with their list ok.
I want the RadComboBox to fire a client javascript function but i can't get it to work. The mark up rendered to the page looks ok, but the event does not fire.
When I try this in a normal ASP page it works ok.
<script type="text/javascript">
//<![CDATA[
function OnDropDownListChanged_Area (sender, args) {
alert("Does not get to here");
}
}//]]>
</script>
<script type="text/javascript">
//<![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Telerik.Web.UI.RadComboBox, {"_dropDownWidth":0,"_height":0,"_skin":"Gray","_text":"Area","_uniqueId":"ctl00$m$g_6c85ed41_4e7e_4153_aabb_b3258fd82c06$lstArea","_value":"","_virtualScroll":false,"clientStateFieldID":"ctl00_m_g_6c85ed41_4e7e_4153_aabb_b3258fd82c06_lstArea_ClientState","collapseAnimation":"{\"type\":12,\"duration\":200}","itemData":[{"selected":true,"imageUrl":"/PublishingImages/well.ico"},{"value":"Area,6937958b-9f45-4af8-8e01-c7e9d511bd8e"}],"selectedIndex":0}, {"selectedIndexChanged":OnDropDownListChanged_Area}, null, $get("ctl00_m_g_6c85ed41_4e7e_4153_aabb_b3258fd82c06_lstArea"));
});
//]]>
</script>