Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
162 views
Hi,

I would like to use the RadFileExplorer, but some features are missing (if I don't mistake), such:
  • Get the toolbar above the files list only and not above the whole webControl,
  • Enable only some specific commands thru the toolbar (New folder, Rename [file or folder], Download [one file or multiple files and directories thru an ZIP file], Delete [file(s) and/or folder(s)], Upload files thru a java applet that is opened in a RadWindow),
  • Enable the drag and drop feature from the Files list to the TreeView, (but also thru a FileBrowserContentProvider because our file repository is virtual).
Because of this, I choose to create my own FileExplorer thanks to other Telerik components. But I encountered some problems in the page layout when I put a RadGrid inside a RadSplitter (thru a RadPane of course). Some scroll bars appears in the DIV#RAD_SPLITTER_PANE_CONTENT_RadPaneX tag of the final HTML document (Either with Internet Explorer 7 or with FireFox 3, and my project must work in these environments [and also under IE6)]. I don't understand why an overflow is generated. How can I send you my web page to show you my problem?

Another question. Because of our specific web servers architecture, I would be preferable to access to all ressources thru real files. If I disable embedded scripts, some are still added: the ones of Microsoft I suppose. Do you know how to really dissable all embedded scripts?

<telerik:RadSplitter id="RadSplitter1" __designer:wfdid="w1" Width="1000px" Runat="server" Height="500px" LiveResize="True" SplitBarsSize EnableEmbeddedScripts="True">
  <telerik:RadPane id="RadPane2" __designer:wfdid="w45" Width="203px" Runat="server" MinWidth="150" EnableEmbeddedScripts="True">
    <telerik:RadTreeView id="RadTreeView1" __designer:wfdid="w46" Runat="server" OnClientNodeClicked="onNoeudArboClicked" Skin="Outlook">
      <Nodes>
        <telerik:RadTreeNode runat="server" Text="Root 1" Value="0" ImageUrl="~/img/telerik/root1.gif" Expanded="True" Checkable="False" Selected="True" AllowDrag="False" AllowDrop="False" AllowEdit="False">
          <Nodes>
            <telerik:RadTreeNode runat="server" Text="Folder 1" Value="1" ImageUrl="~/img/telerik/folder.gif" ExpandedImageUrl="~/img/telerik/FolderOpen.gif" SelectedImageUrl="~/img/telerik/FolderOpen.gif" Checkable="False" AllowDrag="False" AllowDrop="False" AllowEdit="False">
            </telerik:RadTreeNode>
            <telerik:RadTreeNode runat="server" Text="Folder 2" Value="2" ImageUrl="~/img/telerik/folder.gif" ExpandedImageUrl="~/img/telerik/FolderOpen.gif" Checkable="False" AllowDrag="False" AllowDrop="False" AllowEdit="False">
            </telerik:RadTreeNode>
            <telerik:RadTreeNode runat="server" Text="Folder 3" Value="3" ImageUrl="~/img/telerik/folder.gif" ExpandedImageUrl="~/img/telerik/FolderOpen.gif" Checkable="False" AllowDrag="False" AllowDrop="False" AllowEdit="False">
            </telerik:RadTreeNode>
          </Nodes>
        </telerik:RadTreeNode>
        <telerik:RadTreeNode runat="server" Text="Root 2" Value="-1" ImageUrl="~/img/telerik/root2.gif" Checkable="False" AllowDrag="False" AllowDrop="False" AllowEdit="False">
        </telerik:RadTreeNode>
      </Nodes>
    </telerik:RadTreeView>
  </telerik:RadPane>
  <telerik:RadSplitBar id="RadSplitBar1" __designer:wfdid="w47" Runat="server" CollapseMode="Both" EnableEmbeddedScripts="True">
  </telerik:RadSplitBar>
    <telerik:RadPane id="RadPane4" __designer:wfdid="w48" Width Runat="server" EnableEmbeddedScripts="True">
      <telerik:RadGrid id="RadGrid1" runat="server" __designer:wfdid="w49" Width="100%" Height="100%" Skin="Vista" ShowStatusBar="True" AllowMultiRowSelection="True" ShowGroupPanel="False" AllowSorting="True" GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource">
    
      <MasterTableView CommandItemDisplay="Top" CellSpacing="-1">
        <CommandItemTemplate>
          <telerik:RadToolBar id="RadToolBar12" __designer:wfdid="w38" Runat="server" Skin="Vista" AppendDataBoundItems="True" EnableEmbeddedScripts="True">
            <Items>
              <telerik:RadToolBarButton runat="server" CheckedImageUrl="~/img/telerik/NewFolderH.gif" Text="New Folder" ImageUrl="~/img/telerik/NewFolder.gif" HoveredImageUrl="~/img/telerik/NewFolderH.gif" ClickedImageUrl="~/img/telerik/NewFolderH.gif" DisabledImageUrl="~/img/telerik/NewFolder.gif" FocusedImageUrl="~/img/telerik/NewFolderH.gif"></telerik:RadToolBarButton>
              <telerik:RadToolBarButton runat="server" CheckedImageUrl="~/img/telerik/RenameH.gif" Text="Rename" ImageUrl="~/img/telerik/Rename.gif" HoveredImageUrl="~/img/telerik/RenameH.gif" ClickedImageUrl="~/img/telerik/RenameH.gif" DisabledImageUrl="~/img/telerik/RenameX.gif" FocusedImageUrl="~/img/telerik/RenameH.gif" Enabled="False"></telerik:RadToolBarButton>
              <telerik:RadToolBarButton runat="server" CheckedImageUrl="~/img/telerik/DeleteH.gif" Text="Delete" ImageUrl="~/img/telerik/Delete.gif" HoveredImageUrl="~/img/telerik/DeleteH.gif" ClickedImageUrl="~/img/telerik/DeleteH.gif" DisabledImageUrl="~/img/telerik/DeleteX.gif" FocusedImageUrl="~/img/telerik/DeleteH.gif"></telerik:RadToolBarButton>
              <telerik:RadToolBarButton runat="server" CheckedImageUrl="~/img/telerik/DownloadH.gif" Text="Download" ImageUrl="~/img/telerik/Download.gif" HoveredImageUrl="~/img/telerik/DownloadH.gif" ClickedImageUrl="~/img/telerik/DownloadH.gif" DisabledImageUrl="~/img/telerik/DownloadX.gif" FocusedImageUrl="~/img/telerik/DownloadH.gif"></telerik:RadToolBarButton>
              <telerik:RadToolBarButton runat="server" CheckedImageUrl="~/img/telerik/UploadH.gif" Text="Upload" ImageUrl="~/img/telerik/Upload.gif" HoveredImageUrl="~/img/telerik/UploadH.gif" ClickedImageUrl="~/img/telerik/UploadH.gif" DisabledImageUrl="~/img/telerik/Upload.gif" FocusedImageUrl="~/img/telerik/UploadH.gif"></telerik:RadToolBarButton>
           </Items>
         </telerik:RadToolBar>
        </CommandItemTemplate>
      </MasterTableView>

      <ClientSettings>
        <Selecting AllowRowSelect="True"></Selecting>
        <Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
      </ClientSettings>
    
    </telerik:RadGrid>
  </telerik:RadPane>
</telerik:RadSplitter>

Philippe
Top achievements
Rank 1
 answered on 08 Apr 2009
4 answers
194 views
Hello,

I've developed a test application using a trial version of Telerik Q3 2008.3.1314.35. I've created a virtual directory on the IIS6 of a remote server that runs MS Windows Server 2003. The GAC does not contain a reference to the Telerik dll, the dll itself is in the bin directory and below is my web.config file.


<?xml version="1.0"?> 
<!--  
    Note: As an alternative to hand editing this file you can use the  
    web admin tool to configure settings for your application. Use 
    the Website->Asp.Net Configuration option in Visual Studio. 
    A full list of settings and comments can be found in  
    machine.config.comments usually located in  
    \Windows\Microsoft.Net\Framework\v2.x\Config  
--> 
<configuration> 
  <configSections> 
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> 
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> 
        </sectionGroup> 
      </sectionGroup> 
    </sectionGroup> 
  </configSections> 
  <appSettings /> 
  <connectionStrings> 
    <add name="AppsConnectionString" connectionString="Data Source=slogin;Passwor" providerName="System.Data.SqlClient" /> 
  </connectionStrings> 
  <system.web> 
    <membership defaultProvider="AdHocQueryProvider" userIsOnlineTimeWindow="15"> 
      <providers> 
        <clear /> 
        <add name="AdHocQueryProvider" type="en.Development.Security.Membership.AdHocQueryMembershipProvider" connectionStringName="AppsConnectionString" applicationName="TaskManager" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Clear" writeExceptionsToEventLog="false" /> 
      </providers> 
    </membership> 
    <!--  
            Set compilation debug="true" to insert debugging  
            symbols into the compiled page. Because this  
            affects performance, set this value to true only  
            during development. 
        --> 
    <compilation debug="true"> 
      <assemblies> 
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> 
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> 
        <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      </assemblies> 
    </compilation> 
    <!-- 
            The <authentication> section enables configuration  
            of the security authentication mode used by  
            ASP.NET to identify an incoming user.  
        --> 
    <authentication mode="Forms"> 
      <forms loginUrl="Login.aspx" protection="All" timeout="30" name="BolachaMaria" requireSSL="false" slidingExpiration="true" defaultUrl="Default.aspx" cookieless="UseCookies" enableCrossAppRedirects="false" /> 
    </authentication> 
    <authorization> 
      <!-- <deny users="?" /> --> 
      <allow users="?" /> 
    </authorization> 
    <!-- 
            The <customErrors> section enables configuration  
            of what to do if/when an unhandled error occurs  
            during the execution of a request. Specifically,  
            it enables developers to configure html error pages  
            to be displayed in place of a error stack trace. 
      <customErrors mode="Off"/> 
        --> 
    <customErrors mode="Off"/> 
    <pages> 
      <controls> 
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      </controls> 
    </pages> 
    <httpHandlers> 
      <remove verb="*" path="*.asmx" /> 
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> 
      <!-- <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> --> 
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> 
    </httpHandlers> 
    <httpModules> 
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    </httpModules> 
  </system.web> 
  <system.codedom> 
    <compilers> 
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
        <providerOption name="CompilerVersion" value="v3.5" /> 
        <providerOption name="WarnAsError" value="false" /> 
      </compiler> 
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
        <providerOption name="CompilerVersion" value="v3.5" /> 
        <providerOption name="OptionInfer" value="true" /> 
        <providerOption name="WarnAsError" value="false" /> 
      </compiler> 
    </compilers> 
  </system.codedom> 
  <!--  
        The system.webServer section is required for running ASP.NET AJAX under Internet 
        Information Services 7.0.  It is not necessary for previous version of IIS. 
    --> 
  <system.webServer> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <modules> 
      <remove name="ScriptModule" /> 
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
    </modules> 
    <handlers> 
      <remove name="WebServiceHandlerFactory-Integrated" /> 
      <remove name="ScriptHandlerFactory" /> 
      <remove name="ScriptHandlerFactoryAppServices" /> 
      <remove name="ScriptResource" /> 
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
    </handlers> 
  </system.webServer> 
  <runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
      <dependentAssembly> 
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /> 
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
      </dependentAssembly> 
      <dependentAssembly> 
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" /> 
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> 
      </dependentAssembly> 
    </assemblyBinding> 
  </runtime> 
</configuration> 


However, when I access the site i get the following error:

Erro de servidor na aplicação '/tarefas'.

Erro do analisador

Descrição: Erro ao analisar um recurso necessário para efectuar este pedido. Consulte os detalhes do erro de análise específico que se segue e modifique o ficheiro de origem conforme apropriado.

Mensagem de erro do analisador: Não foi possível carregar o ficheiro ou assemblagem 'Telerik.Web.UI' ou uma das respectivas dependências. Era esperado que o módulo contivesse um manifesto de assemblagem.

Erro de origem:

Linha 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeFile="TaskMaster.master.cs" Inherits="TaskMaster" %>
Linha 2:
Linha 3: <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
Linha 4:
Linha 5: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Ficheiro de origem: /tarefas/TaskMaster.master    Linha: 3

Rastreio do carregamento da assemblagem: As informações que se seguem podem ajudar a determinar a razão pela qual não foi possível carregar a assemblagem 'Telerik.Web.UI'.

AVI: O registo do enlace de assemblagem está DESACTIVADO.
Para activar o registo de falhas de enlace, defina o valor de registo [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) como 1.
Nota: Existe algum tipo de penalização no desempenho associado ao registo de falhas de enlace de assemblagem.
Para desactivar esta funcionalidade, remova o valor de registo [HKLM\Software\Microsoft\Fusion!EnableLog].


Translating the portuguese roughly, it states:

"Not able to load the file or assembly 'Telerik.Web.UI' or one of its dependencies. An assembly manifest is expected."

Any ideias?

Thanks in advance.
Marco
Top achievements
Rank 1
 answered on 08 Apr 2009
5 answers
195 views
Hi

I have a treeview with drag and drop enabled. I'm constructing the treeview programatically.
I want to update the nodes (server side) when I drop into new position.

Can I use an AJAXRadPanel with serverside code to stop full postback?
Also can I keep the dropped node selected once a postback has occured?

If so does anybody have any samples?

Many Thanks

Yana
Telerik team
 answered on 08 Apr 2009
1 answer
101 views
I have placed the radeditor in various aspx files and all works well (executed in radwindow), however when I place the control in an ascx module control the content area turns transparent and the DNN background is displayed - not ideal as the color scheme of the background is dark teal.

I need to display the content area with a solid white background, I have tried overriding the CSS at container and radcontrol levels and also tried all color properties on the control.  Any ideas on how I can achieve this?

Tervel
Telerik team
 answered on 08 Apr 2009
5 answers
143 views
When I load the editor, I'd like the table borders to be off, requiring the user to click the ToggleTableBorder (aka Show/Hide Border) button to show the borders. Currently, the editor loads with this button activated by default.

Is there a way to set ToggleTableBorder so that it is initially toggled off, either declaratively in the ToolsFile.xml or through server-side code? (I'd rather not do this client-side through JavaScript, although I have the code to do that if necessary.)

Thanks,

Simon
Tervel
Telerik team
 answered on 08 Apr 2009
1 answer
112 views
Hi

   I need to dynamically create a grid view when i clicking a button.
   also i want to set delete,edit,insert record to that grid

Regards

Friend
Princy
Top achievements
Rank 2
 answered on 08 Apr 2009
1 answer
186 views
I am setting the width for a RadGrid multiline edit text box programmatically (see below) - this works fine. I'd also like to set the height of the edit text box to the height of the edited line, i.e. the height of the line should not change when editing and the edit box should be high enough to show the entire cell context.

However, this does not work. The height of the edited line actually shrinks when I hit "edit" and the edit box therefore only shows the first line or so. Any idea what I am doing wrong?

Thanks for looking into this.

  Private Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound  
 
        If (TypeOf e.Item Is GridEditableItem) AndAlso (e.Item.IsInEditMode) Then 
 
            Dim editedItem As GridEditableItem = e.Item  
            Dim wte As GridTextBoxColumnEditor = TryCast(editedItem.EditManager.GetColumnEditor("BUG_KURZTEXT"), GridTextBoxColumnEditor)  
            Dim txtbx As TextBox = wte.TextBoxControl  
 
            With txtbx  
                .TextMode = TextBoxMode.MultiLine  
                .Width = Unit.Percentage(100)  
                .Height = Unit.Percentage(100)  '<--- this line has no effect  
            End With 
 
 
        End If 
 
    End Sub 
Dimo
Telerik team
 answered on 08 Apr 2009
2 answers
132 views
I'm in a bit of a pickle.  I'm trying to custom-format some data and edit the data as it occurs.

However, sometimes the data is not present.  For example, the data may be in the normal format:

A
>B
>C
>D
>E

(where > is a subelement of the parent)  However, sometimes my data comes back missing B and C, but still successfully renders "normally", but those fields are left blank.

My ItemTemplate displays things in a different format, i.e.

<ItemTemplate>
  <table border=0><tr><td><%# Eval( "A" ) %></td><td><%# Eval( "B" ) %></td></tr>
  <tr>...Rest of the elements here</tr>
  </table>
</ItemTemplate>

However, when I try to render "B" and it is missing, it causes all kinds of nasty issues.  Is there a way to check if this exists in the ItemDataBound event and if not, inject a new value?

Also, is there a way to possibly "skip" it on the ItemDataBound, i.e. if a column is missing, don't even bother showing the entire row?  Is there any kind of GridDataItem.ContainsKey() or something to verify existence of keys, etc?

Thanks!
Taylor
Top achievements
Rank 1
 answered on 08 Apr 2009
5 answers
226 views
Hello,

To avoid having a very large field in each row when radEditor cell content has a large size, I want to display only part of the content for my GridHTMLEditorColumn.
But as content is Html, it seems uneasy to decide to truncate at some fixed length.
Is there a way to do this, telling RadEditor to display only part of content or eventually fixing the row height and having content scrolling for the RadEditor cell ?

Thanks

CS
Tsvetoslav
Telerik team
 answered on 08 Apr 2009
7 answers
387 views
I'm using the FileExplorer in a RadWindow called from a main page and would like to have a specific filename selected when the FileExplorer is displayed in the window.  I have the javascript setup to pass the file name to and from the window so that's not the real problem.  However, I don't seem to be able to find any way to select a file using either sever-side or client-side events.  Can anyone help?

I have enclosed the main page and radWindow page code:

default.aspx:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <script type="text/javascript">  
        function clientShow(sender, eventArgs) {  
            var txtInput = document.getElementById("TextBox1");  
            sender.argument = txtInput.value;  
        }  
        function clientClose(sender, args) {  
            if (args.get_argument() != null) {  
                alert("'" + sender.get_name() + "'" + " was closed and returned the following argument: '" + args.get_argument() + "'");  
            }  
        }  
    </script> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" > 
    </telerik:RadScriptManager> 
    <div> 
    </div> 
    <asp:TextBox ID="TextBox1" runat="server" Width="250px">default.aspx</asp:TextBox> 
    &nbsp;<asp:Button ID="Button1" runat="server" onclick="Button1_Click"   
        Text="Select File" /> 
    <br /> 
    <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="file.aspx" Width="550px" Height="450px" 
        OnClientClose="clientClose" OnClientShow="clientShow">  
    </telerik:RadWindow> 
    </form> 
</body> 
</html> 

file.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="file.aspx.cs" Inherits="file" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <script type="text/javascript">  
        function GetRadWindow() {  
            var oWindow = null;  
            if (window.radWindow)  
                oWindow = window.radWindow;  
            else if (window.frameElement.radWindow)  
                oWindow = window.frameElement.radWindow;  
            return oWindow;  
        }  
        function receiveArg() {  
            txtInput = document.getElementById('TextBox1');  
            var currentWindow = GetRadWindow();  
            txtInput.value = currentWindow.argument;  
        }  
        function returnArg() {  
            txtInput = document.getElementById('TextBox1');  
            var oWnd = GetRadWindow();  
            oWnd.close(txtInput.value);  
        }   
    </script> 
</head> 
<body onload="receiveArg();" > 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Height="300px"   
            Width="450px" > 
<Configuration SearchPatterns="*.*" ViewPaths="~/"></Configuration> 
        </telerik:RadFileExplorer> 
        <br /> 
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
        <asp:Button ID="Button1" runat="server" Text="Close" OnClientClick="returnArg()" /> 
    </div> 
    </form> 
</body> 
</html> 

Many thanks in advance.
Jason
Georgi Tunev
Telerik team
 answered on 08 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?