when I select a record from the grid the panel controls are pre-populated with corresponding data.
when the dropdown list value is "other" i would like to execute javacript function.
I ajaxified the grid and the panel like this:
<telerik:RadAjaxManagerProxy ID="mpPatientPolicy" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rgStudents">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgstudents" LoadingPanelID="AjaxLoadingPanel" />
<telerik:AjaxUpdatedControl ControlID="pnlstudents" LoadingPanelID="AjaxLoadingPanel" />
</UpdatedControls>
</telerik:AjaxSetting>
</ajaxsettings>
</telerik:radajaxmanagerproxy>
and I execute the javascript function like this.
Page.ClientScript.RegisterStartupScript(Page.GetType(), "key", "<script>hideElement();</script>"). the javascript is not getting fired.
Should I be using
scriptManager.RegisterStartupScript to fire the javascript on async postback and what is the correct syntax?