Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
232 views
I am using RADControls for ASP.NET AJAX Q1 2010 NET35

Following is my Web.Config


 
<?xml version="1.0"?>
<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="PayrollConnectionString" connectionString="Data Source=LOCALHOST;Initial Catalog=Payroll;User ID=********;Password=******;"
      providerName="System.Data.SqlClient" />
    <add name="PayrollConnectionString1" connectionString="Data Source=LOCALHOST;Initial Catalog=Payroll;User ID=*********;Password=*********;"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <system.web>
    <!--
            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="Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
        <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.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.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Web.Extensions, Version=1.0.61025.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="Windows" />
    <!--
            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="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <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" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" 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" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
        <providerOption name="CompilerVersion" value="v3.5" />
        <providerOption name="WarnAsError" value="false" />
      </compiler>
    </compilers>
  </system.codedom>
  <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" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
    </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>

And Following is my Default.aspx header

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication3._Default" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

When i try to deploy this on my web host it gives me the following error:

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 31:     <compilation>
Line 32: <assemblies>
Line 33: <add assembly="Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
Line 34: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
Line 35: <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

Source File: C:\HostingSpaces\arts2art\arts2art.net\wwwroot\arts2artproj2\web.config    Line: 33

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


On the server the Telerik.Web.Design.dll and Telerik.Web.UI.dll are in the bin folder with the source code.
It runs fine locally. It gives error just when i deploy this on my webhost.
cemile
Top achievements
Rank 1
 answered on 27 Apr 2011
1 answer
61 views
Hello,

I have implemented one drop down in the Grid , and this drop down contain the values with check box, so that user can select multiple value from drop down, and i want to save once i lost the focus from this drop down, and the selected values are displayed in the other column of the same grid..

Let me know how can i do this?

Regards
samir
Shinu
Top achievements
Rank 2
 answered on 27 Apr 2011
1 answer
153 views
Hi,

I have a VB.net web application with a RadInputManager validation on 2 fields (email address & password). Both these fields must be completed.

<asp:TextBox ID="txtEMail" MaxLength="100" runat="server" Width="250px" />
<asp:TextBox ID="txtPassword" MaxLength="50" runat="server" Width="250px" TextMode="Password" />
 
<asp:Button ID="cmdLogin" runat="server" Text="Login" />
  
    <telerik:RadInputManager ID="RadScreenValidator" runat="server">
        <telerik:TextBoxSetting BehaviorID="IsRequired" Validation-IsRequired="true">
            <TargetControls>
                <telerik:TargetInput ControlID="txtPassword" />
            </TargetControls>
        </telerik:TextBoxSetting>
        <telerik:RegExpTextBoxSetting BehaviorID="ValidateEMail" Validation-IsRequired="true" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$">
            <TargetControls>
                <telerik:TargetInput ControlID="txtEMail" />
            </TargetControls>
        </telerik:RegExpTextBoxSetting>
    </telerik:RadInputManager>

When the user click on the login button, I check if the email address supplied is in fact of a valid domain using DNS lookup.

How do I return to the RadInputManage that the validation failed as I dont use any Error messages but rather the yellow warning sign error indicator on the textbox itself.

Keep in mind that if the email is correctly confirmed in the database & the password is wrong, I just want to warn the user regarding the password not the email address also.

Thanx
Maria Ilieva
Telerik team
 answered on 27 Apr 2011
2 answers
123 views

I am implementing a Silverlight application with combination of Silverlight controls and ASP.net user controls on same aspx page.

One pane (left pane) is reserved for Silverlight controls and other pane is for ASPX controls (right pane).  Right pane will be containing multiple user control based on inputs from Silverlight application.

 

Initially there won’t be any user controls on my page and only Silverlight controls (left pane) will capture whole area of the page. When request comes from Silverlight application, I do want to create a user control dynamically using RAD controls.

 

To achieve it, I am creating a RAD Pane (right pane) and this pane will contain a RAD sliding zone, within RAD sliding zone there will be multiple RAD sliding panes. Each sliding pane will contain one user control in it.

 

 

This way I want to place user control on different sliding panes based on request from Silverlight application dynamically.

I am having RAD control for ASPX (Ajax) and want to create multiple panes and placing user control on respective pane. I want to show only one user control at a time and other can be in hidden mode until user selects tab option to show one of the hidden controls.

 

Please help me how to create these sliding zones and sliding panes dynamically in OnInit override method.

sanyog
Top achievements
Rank 1
 answered on 27 Apr 2011
1 answer
29 views
Some time controls not rendering correctly, i don't know why and how...

At all computer(20-30) of a lab have this problem while on other computers rendering correctly.. Its very critical... please help me...

for issue see attached images
Niko
Telerik team
 answered on 27 Apr 2011
1 answer
266 views
Hello,
in my RadListView, in Edit Mode, I added an imagebutton which allow me (in the code behind), to change and then save data coming from a RadListView.
After this change and save, I want to reload data in the RadListView and exit the Edit mode.

How can I fire an event which bring me up to the "normal" mode, exiting the exit mode (using VB?)

Thanks in advance and best regards
Iana Tsolova
Telerik team
 answered on 27 Apr 2011
1 answer
140 views

Hi all

I use a RadComboBox which contans a RadGrid in itemTemplate,when user type a word in ComboBox, this error raised:
 "Script control 'gv_supplier' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl".

how can I fix it?

<telerik:RadComboBox ID="RadComboBox1" runat="server" DropDownWidth="300px" EmptyMessage="select..."
            EnableLoadOnDemand="True" HighlightTemplatedItems="True" ItemRequestTimeout="10" >
            <Items>
                <telerik:radcomboboxitem selected="true" />
            </Items>
            <ItemTemplate>
                <telerik:RadGrid ID="gv_supplier" runat="server" GridLines="None" Skin="Vista" Width="100%"
                    AllowSorting="True" AutoGenerateColumns="False" ShowFooter="True">
                    <AlternatingItemStyle BackColor="#a7bcdb" />
                    <MasterTableView AllowSorting="True" DataKeyNames="supplier_kind_id" Dir="RTL" Font-Names="Tahoma"
                        HeaderStyle-HorizontalAlign="Center" HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                         ClientDataKeyNames="supplier_kind_id,supplier_kind_code" >
                        <CommandItemSettings ShowAddNewRecordButton="false" />
                        <Columns>
                            <telerik:GridTemplateColumn UniqueName="col_row_number" HeaderText="row">
                                <ItemTemplate>
                                    <asp:Label ID="numberLabel" runat="server" Width="30px" />
                                </ItemTemplate>
                                <HeaderStyle Width="30px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="supplier_kind_id" UniqueName="supplier_kind_id"
                                Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lbl_supplier_kind_id" runat="server" Text='<%# Bind("supplier_kind_id") %>' />
                                </ItemTemplate>
                                <HeaderStyle Width="50px" />
                                <ItemStyle Width="50px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="supplier_kind_code" EmptyDataText="----" HeaderText="code"
                                ReadOnly="True" Resizable="true" UniqueName="supplier_kind_code">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="supplier_kind_name" EmptyDataText="----" HeaderText="name"
                                Resizable="true" UniqueName="supplier_kind_name">
                            </telerik:GridBoundColumn>
                        </Columns>
                        <NoRecordsTemplate>
                            nothing to displaye.
                        </NoRecordsTemplate>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ItemStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </MasterTableView>
                    <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                        <Resizing AllowColumnResize="True" ResizeGridOnColumnResize="false" />
                        <Selecting AllowRowSelect="True" />
                        <ClientEvents OnRowSelected="onRowSelected" />
                    </ClientSettings>
                </telerik:RadGrid>
            </ItemTemplate>
            <FooterTemplate>
              
            </FooterTemplate>
        </telerik:RadComboBox>

<telerik:radcodeblock id="codeBlock" runat="server">   
    <script type="text/javascript">   
    
       function onRowSelected(sender, args)    
        {   
            var selectedText = args.getDataKeyValue("supplier_kind_code");   
            var selectedValue = args.getDataKeyValue("supplier_kind_id");
  
            var combo = $find("RadComboBox1");
  
            setTimeout(
                        function() 
                        {
                            combo.set_text(selectedText);
                            combo.set_value(selectedValue);
                        }
                       , 50);
  
        }
  
             
    </script>  
</telerik:radcodeblock>
Shinu
Top achievements
Rank 2
 answered on 27 Apr 2011
4 answers
80 views
Hi,

I want to display image in my grid and I'm following this demo "BinaryImage / Binary Images and Upload in Grid", I need to disable validation while editing, I'm not able to reach GridBinaryImageColumn, I need this because clients my try to update ImageName or Description only but validation control not allowing this ..

any ideas how to do that?

Regards,
Owidat
Top achievements
Rank 2
 answered on 27 Apr 2011
1 answer
98 views
Hello guys.

I have a RadTextBox that I set the CssClass field, but it doesn't take the style. I tryed with a simple textbox and it works fine. What's the problem?

<telerik:RadTextBox ID="txt1" Runat="server" CssClass="TxtShortText" 
            Height="70px" TextMode="MultiLine" Width="450px">
        </telerik:RadTextBox>

cssClass
.TxtShortText
{
    font-size:x-large;    
}

Regards.
Princy
Top achievements
Rank 2
 answered on 27 Apr 2011
1 answer
75 views
Hi ,

Can somebody help me get the client Id of text box in edititemtemplate?

Thanks,
Ron.
Princy
Top achievements
Rank 2
 answered on 27 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?