Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
64 views

I have a TabStrip and MultiPage with the content of the pageview's using ContentURL.  I'm also adjusting the height of the Multipage to be the height of the Content via document.documentElement.clientWidth.  If I open the page in the browser IE10 or Chrome, it appears to be working fine, however if I open the page in a RadWindow the clientHeight excludes the height of the TabStrip. 

This appears to be an issue related to IE10.
Roger Barnes
Top achievements
Rank 1
 answered on 29 Aug 2013
12 answers
786 views

Hi all:
  I saw lots of topic regarding RadGrid client sort topic and  I couldn't get the answer after I searched lots.most of them using PageMethods.function -- still call function on server side. Is it any way not to go to server side and sort on clientside only?
 I tried to use the following sample but I can't figure out where I can get data from. I don't use the webservice so can't use PageMethods.functionName(). Also I don't want to go to server at all. Is it possible?

Thanks
Helena

 

 

function RadGridAlertsWidget_SortCommand(sender, args) 
{
      var tableView = sender.get_masterTableView();
    var sortExpressions = tableView.get_sortExpressions();
     var fieldName = sortExpressions.getItem(0).get_fieldName();
     var sortOrder = sortExpressions.getItem(0).get_sortOrder();
     //tableView.set_datasource(???)
    tableView.dataBind();
    // sender.dataBind();
   args.set_cancel(true);
      }
David
Top achievements
Rank 2
 answered on 29 Aug 2013
4 answers
361 views
Hi,
i want to enable viewstate Compression in my Webapplication project.

I read the documentation but i think i do something wrong.
This is how my web.config looks like:
<?xml version="1.0"?>
<!--
  Weitere Informationen zum Konfigurieren der ASP.NET-Anwendung finden Sie unter
  -->
<configuration>
  <system.web>
    <siteMap defaultProvider="default">
      <providers>
        <clear />
        <add name="default" type="System.Web.XmlSiteMapProvider" siteMapFile="Web.sitemap" securityTrimmingEnabled="true" />
      </providers>
    </siteMap>
    <authentication mode="Forms">
      <forms name="AuthCookie" loginUrl="user_management\unregistered\Login.aspx" protection="All" path="/" />
    </authentication>
 
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
      <httpModules>
          <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
      </httpModules>
  </system.web>   
  <system.webServer>
      <modules>
          <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
      </modules>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
  </system.webServer>
</configuration>

But i dont know where to enable the radcompression
In the documentation i read that i have to add the following parts in the web.config.
<configSections>
....................
<sectionGroup name="telerik.web.ui">
      <section name="radCompression" type="Telerik.Web.UI.RadCompressionConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/>
</sectionGroup>
....................
</configSections>
<telerik.web.ui> 
   <radCompression enablePostbackCompression="true"/>
</telerik.web.ui>

But it is not obvious where exactly. Tried several combinations without success. Page was blank most of the times.
Can you complete my web.config and make it working?

By The way: I'm working with Visual Web Developer 2010 Express

Thanks and best regards
Jaime Bula
Top achievements
Rank 2
 answered on 29 Aug 2013
3 answers
194 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
183 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
424 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
95 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
83 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
664 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
152 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?