Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
183 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
191 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
99 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
139 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
109 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
178 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 ObjectByVal 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
131 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
220 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
365 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
3 answers
96 views
I have the following combobox that works fine except in IE6, both vertical and horizontal scrollbars appear. They don't in IE7 or FF:

<telerik:RadComboBox ID="PresetsComboBox" runat="server" Skin="WebBlue" OnSelectedIndexChanged="PresetsComboBox_SelectedIndexChanged"
                    EnableLoadOnDemand="true" DropDownWidth="300px" MarkFirstMatch="True" AutoPostBack="True" Width="150px"
                    Text="custom">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                    <HeaderTemplate>
                        <table style="width: 300px" cellspacing="0" cellpadding="0" class="bodyTextBold">
                            <tr>
                                <td style="width: 100px;">
                                    Options
                                </td>
                                <td style="width: 100px;">
                                    Start Date
                                </td>
                                <td style="width: 100px;">
                                    End Date
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table style="width: 300px" cellspacing="0" cellpadding="0" class="bodyText">
                            <tr>
                                <td style="width: 100px;">
                                    <%# DataBinder.Eval(Container, "Text")%>
                                </td>
                                <td style="width: 100px;">
                                    <%# DataBinder.Eval(Container, "Attributes['Start']")%>
                                </td>
                                <td style="width: 100px;">
                                    <%# DataBinder.Eval(Container, "Attributes['End']")%>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:RadComboBox>

Any thoughts?

Thanks, Dave
Kamen Bundev
Telerik team
 answered on 08 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?