Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
177 views
[RadEditor] [ImageManager]

Preview is not working when the image Name contains some special characters like "% or $", is there any solution for this or some workaround to fix this ?

Thanks
Vazqusa
Top achievements
Rank 1
 answered on 29 Aug 2013
5 answers
164 views
I've got a RadGrid inside of a Rad AjaxPanel.  When I click to edit a row, the radgrid databinds (AJAX) and then enters edit mode.

So if I load the page, and then another user creates a new record, and then I click edit on the first record (in my grid), the grid databinds, switches to edit mode and index 0 is selected (which is the newly created record...not the original record I clicked on).

Any thoughts on this?
Martin
Telerik team
 answered on 29 Aug 2013
7 answers
400 views
Hello,

I'm having some problems with my directory path on RadFileExplorer. I'm trying to use the path "\\ftp\ftp\" but it won't load any files or directories, it only loads empty.

Here's some code to analyze:
<telerik:RadFileExplorer ID="FileExplorer1" runat="server" Width="700" Height="500" /


if (!IsPostBack) 
    FileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomColumnsContentProvider).AssemblyQualifiedName; 
 
    FileExplorer1.InitialPath = Page.ResolveUrl(@"\\ftp\ftp\" ); 
    FileExplorer1.Configuration.DeletePaths = new string[] { @"\\ftp\ftp\" }; 
    FileExplorer1.Configuration.UploadPaths = new string[] { @"\\ftp\ftp\" }; 
    FileExplorer1.Configuration.ViewPaths = new string[] { @"\\ftp\ftp\" }; 
 
  AddDateColumns();

public class CustomColumnsContentProvider : FileSystemContentProvider 
    public CustomColumnsContentProvider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag) 
        : base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag) 
    { 
        // Declaring a constructor is required when creating a custom content provider class 
    } 
 
    public override DirectoryItem ResolveDirectory(string path) 
    { 
        // Update all file items with the additional information (date, owner) 
        DirectoryItem oldItem = base.ResolveDirectory(path); 
 
        foreach (FileItem fileItem in oldItem.Files) 
        { 
            // Get the information from the physical file 
            FileInfo fInfo = new FileInfo(Context.Server.MapPath(VirtualPathUtility.AppendTrailingSlash(oldItem.Path) + fileItem.Name)); 
 
            // Add the information to the attributes collection of the item. It will be automatically picked up by the FileExplorer 
            // If the name attribute matches the unique name of a grid column 
 
            fileItem.Attributes.Add("Date", fInfo.CreationTime.ToString()); 
        } 
 
        return oldItem; 
    } 
 
    public override DirectoryItem ResolveRootDirectoryAsTree(string path) 
    { 
        // Update all directory items with the additional information (date, owner) 
        DirectoryItem oldItem = base.ResolveRootDirectoryAsTree(path); 
 
        foreach (DirectoryItem dirItem in oldItem.Directories) 
        { 
            // Get the information from the physical directory 
            DirectoryInfo dInfo = new DirectoryInfo(Context.Server.MapPath(VirtualPathUtility.AppendTrailingSlash(dirItem.Path))); 
 
            // Add the information to the attributes collection of the item. It will be automatically picked up by the FileExplorer 
            // If the name attribute matches the unique name of a grid column 
 
            dirItem.Attributes.Add("Date", dInfo.LastWriteTime.ToString()); 
        } 
        return oldItem; 
    } 
 
 


How come the "\\ftp\ftp\" path doesn't work?
And if I don't comment off the code:
FileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomColumnsContentProvider).AssemblyQualifiedName; 

I get an error at:
DirectoryItem oldItem = base.ResolveDirectory(path); 
Saying that oldItem is null.

I don't believe there's anything wrong with the path string, because when I try the follow code:
DirectoryInfo di = new DirectoryInfo("\\ftp\ftp\"); 
 FileInfo[] rgFiles = di.GetFiles("*.*"); 
 foreach(FileInfo fi in rgFiles) 
 { 
  Response.Write("<br><a href=" + fi.Name + ">" + fi.Name + "</a>");        
 } 
I get the correct files listed on that path.

I even tried Impersonating an account before using the paths, but it still doesn't work.

I hope there's sufficient information, please help.

Thanks in advance
/Cristoffer
Vessy
Telerik team
 answered on 29 Aug 2013
1 answer
92 views
the grouping and export are amazing functions in radgrid and odata give me 
great performance in my apps but the firts doesnt work, the telerik team thinks work in its soon?
Daniel
Telerik team
 answered on 29 Aug 2013
2 answers
76 views
I am using RadChart control in my aspx page. I wrote the code to bind to RadChart on  page load. I am getting below error once the page is loaded. Please respond to me ASAP .

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'storageGet'
Ves
Telerik team
 answered on 29 Aug 2013
3 answers
638 views
Hi i want to change RadTextbox's font-family as Verdana.

I done this to combobox item by applying css like below which can change font of combo items.
.rcbItem
{
font-family:Verdana !important;
}

like this way i want to apply to radtextbox. i don't want to change / set attribute for each radtextbox in a page where more than 20 radtextboxes are there.

Please help me out.
Shinu
Top achievements
Rank 2
 answered on 29 Aug 2013
2 answers
144 views
Hi,
I have two tables "first" and "second". Definition of these tables and data in the same are in the pics attached.
With the second table I keep experiencing exception as you can see in the Exception picture attached and I do not understand the problem.
Why I am getting such exception with the second table?
Felice
Top achievements
Rank 1
 answered on 29 Aug 2013
1 answer
125 views
Hi,

When calling RadGrid.MasterTableView.ExportToPdf() the Adobe Reader browser addon for IE 8 crashes after a few seconds. It starts to display the data, then says it "stopped working". I have looked at a few threads talking about Ajaxified grids and this but can't get around the issue.

Any advice would be appreciated.

Thanks,

ASP.NET 4
VS 2010
Telerik RadControls for ASP.NET Ajax 2012.3.1308.40
Adobe PDF Link Helper                10.1.4.38
Kostadin
Telerik team
 answered on 29 Aug 2013
1 answer
158 views
Hi, I am trying to use database structure to populate Rad TreeView on PreRender after new item added, but I cannot see new node until I refresh the page. Please, help.
Boyan Dimitrov
Telerik team
 answered on 29 Aug 2013
9 answers
665 views
I need to put the RadEditor into 'read-only' mode using client-side script, where both the Toolbars and the Content area are disabled, but are still viewable.

I've tried the following code in Javascript, but the Radeditor's content area is still editable.

    document.body.editor.enableEditing =

false;
    document.body.editor.set_editable(
false);
    document.body.editor.EnableContentArea =
false;
    document.body.editor.get_ContentArea().contentEditable =
'false';

Suggestions?

Ianko
Telerik team
 answered on 29 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?