Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
159 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
396 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
84 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
74 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
629 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
136 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
116 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
154 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
646 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
1 answer
226 views
I have a combobox and i have set up a Textchanged event for it. The event fires fine when i select a different number of items every time, ex: select 1 (A) checkbox, then select 2 (A & B) checkboxes, then select 1 (A) checkbox again, etc. When i keep selecting 2 items (different items every time) the event does not get fired, ex: select 2 checkboxes (A & B), select 2 checkboxes (B&C).

I was previously using the selectedindexchanged event but i was having the same problem.

These are the properties set up for the combobox:
ID="ComboBox" runat="server" CheckBoxes="True" EnableCheckAllItemsCheckBox="True"
                                    DataTextField="DEPARTMENT" DataValueField="DEPARTMENT" Width="300px" MaxHeight="600px"
                                    AutoPostBack="True"
Protected Sub ComboBox_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ComboBox.TextChanged
'do something
 
End Sub

Any suggestions on how to address this?
Boyan Dimitrov
Telerik team
 answered on 29 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?