I would like to add two files into the radsciptmanager if the user is using a version of IE < 9. My thought is that in the Page_Load I can test the users Browser and use an if statement to add in the 2 scripts. The reason being, these 2 files fix issues in IE 7&8 but they cause issues in IE 9&10. I have posted some code that I have tried out just not sure what I am missing or if it is possible. Is this possible with RadScriptManager? Thanks in advance.
<telerik:RadScriptManager ID="RadScriptManager" runat="server" EnablePartialRendering="true"
AsyncPostBackTimeout="1800" EnableCdn="true">
<Scripts>
<telerik:RadScriptReference Path="~/Scripts/File1.js" />
<telerik:RadScriptReference Path="~/Scripts/File2.js" />
<telerik:RadScriptReference Path="~/Scripts/File3.js" />
</Scripts>
</telerik:RadScriptManager>
-------------------------------------------------------------------------------------------------------------------------------
if (type == "IE8" || type == "IE7")
{
RadScriptManager rsmgr = new RadScriptManager();
//ScriptManager smgr = ScriptManager.GetCurrent(Page);
ScriptReference SRef = new ScriptReference("~/Scripts/File4.js");
ScriptReference SRef1 = new ScriptReference("~/Scripts/File5.js");
rsmgr.Scripts.Add(SRef);
rsmgr.Scripts.Add(SRef1);
}