public override string ToString(){ //LosFormatter formatter = new LosFormatter(); BinaryFormatter formatter = new BinaryFormatter(); //using (StringWriter writer = new StringWriter()) using (MemoryStream writer = new MemoryStream()) { formatter.Serialize(writer, this); string arr = writer.ToString(); return arr.ToString(); }}/// <summary>/// Gets the GridSettingsCollectionInstance from its serialized string data/// </summary>/// <param name="data">The object as serialized string data</param>public static GridSettingsCollection LoadFromSerializedData(string data){ //LosFormatter formatter = new LosFormatter(); BinaryFormatter formatter = new BinaryFormatter(); byte[] arr = System.Text.Encoding.ASCII.GetBytes(data); MemoryStream stream = new MemoryStream(arr); //return (GridSettingsCollection)formatter.Deserialize(data); return (GridSettingsCollection)formatter.Deserialize(stream); }
Hi,
I am using Sharepoint 2010. I have added the rad grid and i also added the radajax manager.
I would like to know the difference between "RadAjaxManager and RadScriptManager" and whcih should be used in sharepoint 2010?
Below is the radajax code i have used:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="radgrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="radgrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="hdnRowsCount" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="25"> <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0;" /></telerik:RadAjaxLoadingPanel>RadAjaxManager ajaxmgr; protected override void CreateChildControls() { Control control = Page.LoadControl(_ascxPath); Controls.Add(control); RadAjaxLoadingPanel loadingPanel = control.FindControl("RadAjaxLoadingPanel1") as RadAjaxLoadingPanel; RadGrid grid = control.FindControl("radgrid1") as RadGrid; //Find more controls to add to the ajax settings if (ajaxmgr != null) { ajaxmgr.AjaxSettings.AddAjaxSetting(grid, grid, loadingPanel); } } protected override void OnInit(EventArgs e) { base.OnInit(e); ajaxmgr = RadAjaxManager.GetCurrent(Page); if (ajaxmgr == null) { ajaxmgr = new RadAjaxManager(); Page.Items.Add(typeof(RadAjaxManager), ajaxmgr); } if (Page.Form != null) { Page.Form.Controls.AddAt(0, ajaxmgr); } EnsureChildControls(); }Telerik.Web.UI.GridFilterFunction.parse=
function(b,a){return(typeof b=="number")?b:Sys$Enum$parse.call(this,b,!!a);
};
Unhandled exception at line 3193, column 55 in http://localhost:19090/ScriptResource.axd?d=k62TwA9lIVL1DYh1_yahdvGdpToXcfYK8FuLsmPfwI_xLuse-EL6cMNkqgLdBIsX0-NS-Yr6mZXhBS4-c1db0SyByg9DvHR-9hEtEbmq1yoeOwgWF_v9aCiAL0gbx6bhyPmuGQAmBlm_IbfyURt9HQ2&t=6f22ca9b
0x800a1391 - Microsoft JScript runtime error: 'Sys$Enum$parse' is undefined

FileExplorer.Grid.AllowMultiRowSelection = true;FileExplorer.Grid.AllowMultiRowEdit = true;FileExplorer.FileList.AllowMultipleItemSelect = true;FileExplorer.ListView.AllowMultiItemSelection = true;
.RadMenu_Default
.rmItem
{
padding: 1px 0 3px 56px;display: block;border-bottom: 1px solid #cacaca;color: #193444;text-decoration:none; background: #d6dfc8 url(../ImagesNew/blue_arrow.gif) no-repeat 15px 4px;
}
.RadMenu_Default
.rmRootLink
{
background: url(../ImagesNew/toptitle.gif) repeat-x; width:100%;
}