I have a page with ajaxified RadGrid.
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart = "mngRequestStarted"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadGrid1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/> |
| </UpdatedControls> |
| </telerik:AjaxSetting></AjaxSettings></telerik:RadAjaxManager> |
| <telerik:RadGrid ... > |
| .......... |
| </telerik:RadGrid ... > |
EditFormSettings are the following:
| <EditFormSettings UserControlName="Controls/EditRate.ascx" EditFormType="WebUserControl"> |
In EditRate.ascx.cs I try to add a startup java-script by the following way.
| protected void Page_Load(object sender, EventArgs e) |
| { |
| ScriptManager.RegisterStartupScript(RadAjaxManager.GetCurrent(Page), typeof(Page), "DualListScript", "MetaBuilders_DualList_Init();", true); |
| } |
When I click on the Edit icon in the grid row, edit user control is loaded, but
MetaBuilders_DualList_Init() is not included to the page source. What I am doing wrong?