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

RadComboBox doesn't fire the

1 Answer 53 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gordon
Top achievements
Rank 1
Gordon asked on 29 Oct 2008, 09:39 AM
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>

<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>

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 31 Oct 2008, 03:53 PM
Hi Gordon,

This is really strange. What is the exact version of Telerik.Web.UI.dll that you use?
Are there any javascript error on the page? Please make sure that you have enabled AJAX on your sharepoint site.

Can you paste here the definition of the combobox as well?


Regards,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Gordon
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or