Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
995 views
Hello,
I moved my website from a window server 2012 (where everything worked) to a window server 2022 with Framework 4.8.
After configuring IIS and inserting the pages leaving everything as it was also the web config, when I load the login page the telerik objects are all graphically wrong and nothing works.
I think it could be something in the webconfig that needs to be configured.
The errors that are generated are the following:
Failed to load resource: the server responded with a status of 403 () WebResource.axd:1
Failed to load resource: the server responded with a status of 403 ()Telerik.Web.UI.WebResource.axd:1
Uncaught ReferenceError: Sys is not defined
    at default.aspx:128:1
Uncaught ReferenceError: $get is not defined
    at default.aspx:262:1
Uncaught ReferenceError: WebForm_AutoFocus is not defined


here is the code of my webcofig:     

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <appSettings>
    <add key="Telerik.Skin" value="Bootstrap" />
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" />
    <add key="Telerik.Web.UI.RenderMode" value="lightweight" />
  </appSettings>
  <system.web>
    <compilation debug="false" strict="false" explicit="true" targetFramework="4.8">
      <assemblies>
        <add assembly="System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </assemblies>
      <buildProviders>
        <add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
      </buildProviders>
    </compilation>
    <httpRuntime targetFramework="4.8" />
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>
    </pages>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" 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" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <remove name="ChartImage_axd" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACEVerbHandler" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
  </system.webServer>
  <entityFramework>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration> 

If anyone can help me figure out how to fix this.

Thank you
Fabio
Top achievements
Rank 1
 asked on 13 Dec 2022
1 answer
141 views
How to update/rebind RadDropDownList sql source when a user selected a value in a dropdownlist in another column?
Can you please provide a how-to example in VB.net. This is urgent. Please help.
Thanks.
Valentin Dragnev
Telerik team
 answered on 13 Dec 2022
1 answer
185 views
I have a simple grid running in Batch Edit mode. Need to disable column "Division" and change its color by clicking an outside button. My code gets executed but nothing changes. This column's color gets set by applying custom CSS using 
background-color: white !important;. My code assigns a different CSS with another color.

ASPX:
<telerik:GridBoundColumn DataField="Division" HeaderText="Division" UniqueName="Division"></telerik:GridBoundColumn>

VB cb:
    Protected Sub btnApprove_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnApprove.Click
        Dim Item As GridDataItem
        For Each Item In RadGrid1.MasterTableView.Items
            If (Item.IsDataBound) Then
                Dim col As GridBoundColumn = CType(RadGrid1.MasterTableView.GetColumn("Division"), GridBoundColumn)
                col.ItemStyle.CssClass = "customGriglinesGray"
                col.ReadOnly = True
            End If
        Next
    End Sub
Attila Antal
Telerik team
 answered on 13 Dec 2022
1 answer
101 views

Hello friends

Scenario:

On hovering the textbox an alert is triggered from clientscript.

The controls are placed inside a RadAjaxpanel.

Question:

Why does this setup only works on inital load?

If I submit the page, the clientscript does not work anymore.

Check my demo below.

 

kind regards

Mark


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>

    <form id="form1" runat="server">

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI"
                    Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI"
                    Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI"
                    Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>

        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Metro" >
        </telerik:RadAjaxLoadingPanel>
        


        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

            <script type="text/javascript">

                $(document).ready(function () {

                    $("#TextBox1").hover(function () {
                        alert('test');
                    });
                });

            </script>

        </telerik:RadScriptBlock>


        <telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server" Height="100%" Width="100%">

            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="Submit" />

        </telerik:RadAjaxPanel>

    </form>
</body>
</html>

using System;

public partial class mytest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
}


 

Rumen
Telerik team
 answered on 13 Dec 2022
1 answer
171 views

Hi,

How to change the size of the radio button icon. 

 

When I change the size of the font for the radio button the text size increase but not the icon.

 

Note: its not the radio button list, its the radio button control

 

Many thanks,

Omar

Valentin Dragnev
Telerik team
 answered on 13 Dec 2022
1 answer
139 views
Hi,

This one has been hard to find an answer for despite checking many posts. I have a radgrid with an embedded radcombobox. The fields in the grid look like this with a GridTemplateColumn that contains the radcombobox called cboGuageName:
<telerik:GridBoundColumn UniqueName="MeasureName" DataField="MeasureName" HeaderText="MeasureName" ReadOnly="true"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Min" DataField="Min" HeaderText="Min"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Max" DataField="Max" HeaderText="Max"></telerik:GridBoundColumn>
<%--<telerik:GridBoundColumn UniqueName="GuageName" DataField="GuageName" HeaderText="GuageName"></telerik:GridBoundColumn>--%>
<telerik:GridTemplateColumn UniqueName="GuageName" HeaderText="Guage Name" DataField="GuageName" HeaderStyle-Width="200px">
    <itemtemplate>
        <%# Eval("GuageName")%>
    </itemtemplate>
    <edititemtemplate>
        <telerik:RadComboBox ID="cboGuageName" OnLoad="cboGuageName_Load" AutoPostBack="true" DataTextField="GuageName" DataValueField="GuageName" SelectedValue='<%# Bind("GuageName") %>' runat="server" Width="140px"></telerik:RadComboBox>
    </edititemtemplate>
</telerik:GridTemplateColumn>


 I am able to set the radcombobox in the grid with the correct value and display the grid when not in edit mode using the following code in needdata source code event as follow:
if (lstDocType.SelectedIndex >= 0)
{
    using (var db = new SpecCheck.Models.TorqDevEntitiesNewTest())
    {
        string dbase = db.Database.Connection.ConnectionString;
        RadWindowManager1.RadAlert("Database is " + dbase + "-Need", 400, 180, "ALERT", null, null);

        Guid docId = new Guid(lstDocType.SelectedItem.Value.ToString());
        var measure = db.DocumentMeasureTypes.Where(d => d.DocumentTypeId == docId).Select(d => new { d.DocumentMeasureTypeId, d.MeasureName, d.Min, d.Max, d.GuageName, d.Sort }).OrderBy(d => d.Sort).ToList();
        RadGridMeasureType.DataSource = measure;
        //RadDropDownList ddl1 = edit1["Description"].FindControl("cboDocType") as RadDropDownList;
    }
}


When  click the edit link the code below executes which is in the itemdata event for the radgrid; it finds the right key, retrieves the correct grid data for the row, and sets the radcombobox selected with the value for that field. .However the code that grabs the combobox returns null so there is nothing to assign the gridrow's value to. Worst of all the program will not go  up into editable mode after clicking the edit link; it either does nothing or the cursor spins endlessly.
Here is the code in itemdata event for the grid:
described above: 
using (var dbMeasureType = new SpecCheck.Models.TorqDevEntitiesNewTest())
    //if (e.Item is GridDataItem)
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        GridEditableItem editItem = (GridEditableItem)e.Item;
        //Access the RadDropDownList
        RadComboBox guageType = (RadComboBox)editItem.FindControl("GuageName");
        var key = (Guid)editItem.GetDataKeyValue("DocumentMeasureTypeId");
        //using (var db = new TorqDevEntitiesNewTest())
        //{
        var measures = dbMeasureType.DocumentMeasureTypes.Find(key);
        guageType.SelectedValue = (String)(measures.GuageName);
    }



 I've tried many things but nothing seems to work. Any advice would be appreciated.

Neil
Attila Antal
Telerik team
 answered on 12 Dec 2022
0 answers
92 views
RadGrid running in batch edit mode. When selecting a value in dropdown "ddlPayrollId", I need to set  "StaffName" to a certain value, let's say 'Joe' . Can you please provide a VB example on how to do it!

ASPX:
 
<telerik:GridTemplateColumn UniqueName="PayrollId" DataField="PayrollId">
                        <ItemTemplate>
                            <%# Eval("PayrollId")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadDropDownList runat="server" ID="ddlPayrollId" DataValueField="PayrollId" DataTextField="PayrollId" DataSourceID="SqlDataSource1">
                            </telerik:RadDropDownList>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>

<telerik:GridBoundColumn DataField="StaffName" UniqueName="StaffName" ReadOnly="True"></telerik:GridBoundColumn>
Josif
Top achievements
Rank 1
 asked on 08 Dec 2022
0 answers
109 views
Hello!  I am troubleshooting why my RadScheduler is only showing about a months worth of events.  It is currently defaults to opening to the current month, but when navigating to the previous month it only populates the last week of that last month(November) and doesn't populate any events into next month(January).  I know there are events that should be populating outside of that, but not sure why it would be limited to only show those.  
James
Top achievements
Rank 1
 asked on 06 Dec 2022
1 answer
174 views

Cannot create an object of type 'Telerik.Web.UI.GridExcelExportFormat' from its string representation 'Xlsx' for the 'Format' property.
 <groupingsettings collapsealltooltip="Collapse all groups" />
Line 393:                <exportsettings exportonlydata="True">
Line 394:                    <Excel Format="Xlsx" />
Line 395:                </exportsettings>
Line 396:                <HeaderStyle BackColor="#614051" ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" />

Tanvir
Top achievements
Rank 1
Iron
 answered on 01 Dec 2022
0 answers
98 views

I have telerik:RadGrid like this, when I select page 8 then select row and update/delete the Grid reload to page 1. So I want after update/delete the Grid still select page 8 and data update will to appear on Grid.

Before update/delete

After update/delete

Thanks,

Tien
Top achievements
Rank 1
 asked on 30 Nov 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?