I need to dynamically specify the client side event handler in code behind but I don't seem to figure it out. Tried to no avail the following:
MyRadToolBarRefresh.Attributes.Add("OnClientButtonClicking","ToolbarCheckDirty");
or MyRadToolBarRefresh.OnClientButtonClicking = "ToolbarCheckDirty";
or Page.ClientScript.RegisterStartupScript(Page.GetType(), "RadToolBarRefresh_ButtonClicking", "$find('" +.MyRadToolBarRefresh.ClientID + "').add_buttonClicking(ToolbarCheckDirty)", true)
or RadAjaxManagerMaster.ResponseScripts.Add("$find('" + MyRadToolBarRefresh.ClientID + "').add_buttonClicking(ToolbarCheckDirty)");
MyRadToolBarRefresh.Attributes.Add("OnClientButtonClicking","ToolbarCheckDirty");
or MyRadToolBarRefresh.OnClientButtonClicking = "ToolbarCheckDirty";
or Page.ClientScript.RegisterStartupScript(Page.GetType(), "RadToolBarRefresh_ButtonClicking", "$find('" +.MyRadToolBarRefresh.ClientID + "').add_buttonClicking(ToolbarCheckDirty)", true)
or RadAjaxManagerMaster.ResponseScripts.Add("$find('" + MyRadToolBarRefresh.ClientID + "').add_buttonClicking(ToolbarCheckDirty)");