Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
102 views
I am trying to save setting to SQL. It works fine until I recompile and then it falls apart.


Does anyone have an example of the GridSettingsPersister that uses the BinaryFormatter instead of the LosFormatter?

I am still unable to get the BinaryFormatter to work. Has anyone been able to get the GridSettingsPersister to work with the BinaryFormatter?

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);
 
    
}

Brad
Top achievements
Rank 2
 answered on 21 Dec 2012
14 answers
450 views
Hi all,
I have a page that has a radupload control on it. In the code behind we check to make sure the uploadedfiles collection has something in it before we attempt to process the uploaded file.

This works on every system in our dev environment except for one. We have tried copying the directory tree between systems, completely wiping the directory and starting from scratch, and checking every setting we can think of.

It does not use an AJAX post-back, the app is set to run Full Trust, and we are not changing the masterpageID in the init. 

Any ideas? banging my head against a wall on this one.

Patrick
Plamen
Telerik team
 answered on 21 Dec 2012
5 answers
259 views
Problem Firefox and google chrome. IE is working.
we are using radeditor version (2009.2.701.35) in vs.net 2008(asp.net) application.
we have scenario like to show a editor in ajax modal popup when on click button event.
modal popup shows editor with all tools defined(font dropdown,size dropdown like..)
then enter some content text into editor and try to change size or font name by selecting dropdowns nothing is open.
and when i hit save button inside modalpopup enterd content does not retained to in to the save click event.

I have also checked this with version 2010.1.519.35 latest version. but no luck.

this is very important and urgent . please provide any workaround to this.

thanks in advance.
Slav
Telerik team
 answered on 21 Dec 2012
3 answers
330 views

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>

Also, in the cs, i have manually added the ajax as below for sharepoint 2010:
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();
        }

Thanks
Maria Ilieva
Telerik team
 answered on 21 Dec 2012
1 answer
77 views
Hi,

I got a rad grid and a column which tried using the filter textbox. When I typed in the name and selected the "Contains" filter, an exception is thrown and it breaks at the following telerik code. Please help. I am not sure why it is bombing.

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

Kostadin
Telerik team
 answered on 21 Dec 2012
5 answers
137 views
Hi there, we have a weird behavior of the RadSplitter when the page is displayed in an iPad.
Basically, the page width keeps growing a couple of pixels per second (or so), thus overflowing on the right side.
Is this a known behavior (I hope so, we have this in two different applications)? Is there a workaround?
Thanks
Vessy
Telerik team
 answered on 21 Dec 2012
1 answer
104 views
We recently updated our Telerik controls, and in that, we lost the ability to select multiple items in the FileExplorer. We've tried these 4 settings, to no avail:

FileExplorer.Grid.AllowMultiRowSelection = true;
FileExplorer.Grid.AllowMultiRowEdit = true;
FileExplorer.FileList.AllowMultipleItemSelect = true;
FileExplorer.ListView.AllowMultiItemSelection = true;

Is there any other settings we need to set to re-enable multiselect in the FileExplorer?
Vessy
Telerik team
 answered on 21 Dec 2012
3 answers
170 views
Hello Team,

I have RAD Menu and i have set its flow="vertical" . The submenus are binded through sitemap datasource.

i menu appears vertical and collapsed. I need the sub-menu items should be expanded always under root menu.

Please help me in resolve this.

Css below is for settign root menu style

.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%;

 

}



Thanks
Boyan Dimitrov
Telerik team
 answered on 21 Dec 2012
2 answers
70 views
Hi,

I have an issue to work with RadTreeList OnItemDragging Client Event. The event does not fire when I dragging the tree item. I have tried to find the reason and got that it is because, I have added AjaxControlToolkit in my web application. If I remove the reference of AjaxControlToolkit then event works well, but I need it for other functionality so can not remove ajaxcontroltoolkit from my web application. 

Please, help me to work with RadTreeList OnItemDragging client event without remove ajaxcontroltoolkit.

Thanks.
Dipali
Top achievements
Rank 1
 answered on 21 Dec 2012
1 answer
61 views
The filter is very, very slow for everyday use against a radgrid. 

It seems that a postback is created whenever an expression is added, when a field is selected and again when the operator is selected.  To do a simple filter for a last name "containing" it goes through 3 post backs.  Is there a way to speed this up?  Am I missing something?

Thanks!

Rob
Daniel
Telerik team
 answered on 21 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?