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

Im having an issue with a application im working on within VS 2019 asp.net

When I build my application I get the error below:

NuGet Package restore failed for project Planning_BO: Unable to find version '2022.1.119' of package 'Telerik.UI.for.AspNet.Ajax.Net35'.
  https://nuget.telerik.com/v3/index.json: Package 'Telerik.UI.for.AspNet.Ajax.Net35.2022.1.119' is not found on source 'https://nuget.telerik.com/v3/index.json'.

 

Im not sure how to resolve this. I have tried https://api.nuget.org/v3/index.json still the same issue.

Anita
Top achievements
Rank 1
Iron
 answered on 10 Apr 2024
1 answer
16 views

Dear Team,

We are currently using Telerik version 2013.1.0.403 in our application. One of our client has highlighted a Unrestircted Fie Upload issue concerning the RadAsyncUpload function.

The impact of the concern is that the RadAsyncUpload's AsyncUploadHandler was configured with a static key for encrypting form data in file upload requests. This key, PrivateKeyForEncryptionOfRadAsyncUploadConfiguration, was not changed from its default value. As a result, an attacker could exploit this by crafting a file upload request to /Telerik.Web.Ui.WebResource.axd?type=rau with a custom encrypted rauPostData POST parameter.

This could allow the attacker to upload malicious files and potentially gain unauthorized access, such as a web shell.

How do we configure the PrivateKeyForEncryptionOfRadAsyncUploadConfiguration, and what is the procedure for doing so?
Thank you in advance for your cooperation.

Rumen
Telerik team
 answered on 08 Apr 2024
1 answer
13 views

We are getting below error message while updating latest telerik dll.

Severity Code Description Project File Line Suppression State
Error The project currently contains references to more than one version of System.Web.Extensions, a direct reference to version 3.5.0.0 and an indirect reference (through 'Telerik.Web.UI.RadWindowManager') to version 4.0.0.0. Change the direct reference to use version 4.0.0.0 (or higher) of System.Web.Extensions. C:\xyz.aspx

Rumen
Telerik team
 answered on 05 Apr 2024
1 answer
12 views
a
Rumen
Telerik team
 answered on 05 Apr 2024
1 answer
12 views

Hello,

 

How do I set the height of the actual input box?  I have tried the following without success.

 

  div.CustomCssClass .rcbInputCell INPUT.rcbInput
  {    
      height: 25px;
      width: 250px;
  }
  div.CustomCssClass {
      height: 35px;
  }

 

Thanks

Rumen
Telerik team
 answered on 03 Apr 2024
1 answer
22 views

 

  • In our application we are using the Telerik RadEditor to save the information in the database. And use the same information in the SSRS reports.
  • We are facing the issue while using “Tab” key in the Telerik RadEditor.
  • In the MS-SQL database the tabs are being saved in the following HTML format,       

 <span style="white-space: pre;">     </span>

Screen Shot 1: Below screen shot shows the Telerik RadEditor where, 5 Tabs are being entered after the Amount text. 

  • The Html text saved in database field is as shown below,

     

    <p>Amount<span style="white-space:pre;">     </span>54123</p>  <p>Test Amount<span style="white-space:pre;">    </span>87596</p>

     

  • We are unable to see any tabs (spaces) in the SSRS report as shown below,

    Screen Shot 2:  Missing Tabs in SSRS report as shown below, 

    Screen Shot 3: SSRS report text field accepting HTML.


  • The report field is HTML enabled. And it Interprets Html tags as Styles.

 

Can you please help us to find the solution for the above issue ?

 

Rumen
Telerik team
 answered on 01 Apr 2024
1 answer
14 views

With file explorer, I have no issues with creating a new folder with a string that contains a "&". The folder is created as expected.

But when I rename an existing folder to a string that contains a "&", the system will replace the "&" and "&amp;". This behaviour is shown in the fileexplorer demo :

https://demos.telerik.com/aspnet-ajax/fileexplorer/examples/overview/defaultcs.aspx

Rumen
Telerik team
 updated answer on 29 Mar 2024
1 answer
33 views

The pop up that I am trying to display when clicking on an <a> tag seems to not be able to take in the URL that I have passed into it via a post-back. All this does is to throw me an error stating. These snippet of  code seems to be working on a previous iteration of an application but seems to be continuing to throw this error in this new iteration of the application that I am currently developing.

Uncaught TypeError: Cannot read properties of undefined (reading 'open')
    at window.radopen 
    at OpenForm 
    at HTMLAnchorElement.onclick
window.radopen
OpenForm
onclick

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Animation="Resize"
    OnClientBeforeShow="clientBeforeShow" AutoSize="true" Title="Product Details"
    ViewStateMode="Disabled" EnableViewState="false" Behaviors="Close, Move" VisibleOnPageLoad="false"
    VisibleStatusbar="false" DestroyOnClose="true" MinWidth="650px" MinHeight="500px">
    <Windows>
        <telerik:RadWindow ID="ConfirmDialogue" runat="server" Title="Product Details"
            AutoSize="true" DestroyOnClose="true" EnableViewState="false" ReloadOnShow="true"
            Style="display: none;" ShowContentDuringLoad="false" Modal="true" VisibleStatusbar="false">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

 

My javascript:

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">

        function OpenForm(arg) {
            console.log("Argument: ", arg);
            var encodedArg = encodeURIComponent(arg);
            window.radopen(encodedArg, "ConfirmDialogue");
        }

        $(function () {
            $("#tabs-min").tabs();
        });

        function onClientClickPostbackBill() {
            __doPostBack('<%=lnkBill.UniqueID%>', '');
        }

        function onClientClickPostbackStuff() {
            __doPostBack('<%=lnkStuff.UniqueID%>', '');
        }

        function onClientClickPostbackProduct() {
            __doPostBack('<%=lnkProduct.UniqueID%>', '');
        }

        function onClientClickPostbackMerch() {
            __doPostBack('<%=lnkMerch.UniqueID%>', '');
        }

        function onClientClickPostbackUsers() {
            __doPostBack('<%=lnkUsers.UniqueID%>', '');
        }


        function onClientClickPostbackALL() {
            __doPostBack('<%=lnkALL.UniqueID%>', '');
        }

        function onClientClickPostbackREVIEW() {
            __doPostBack('<%=lnkREVIEW.UniqueID%>', '');
        }



        function printPage(productNo) {
            var div = document.getElementById("printerDiv");
            div.innerHTML = '<iframe id="printframe" src="Letter.aspx?BatchNo=' + batchNo + '"  height="0px" width="0px"  onload="printIframe();"></iframe>';
        }

        function print2LAPage(productNo, searchType) {
            var div = document.getElementById("printerDiv");
            div.innerHTML = '<iframe id="printframe" src="/ProductManagement/PrintProductList.aspx?ProductNo=' + productNo + '&ProductType=' + searchType + '"  height="0px" width="0px"  onload="printIframe();"></iframe>';
        }
        function printReview(batchNo, searchType) {
            var div = document.getElementById("printerDiv");
            div.innerHTML = '<iframe id="printframe" src="/ProductManagement/PrintProductList.aspx?ProductNo=' + productNo + '&ProductType=' + searchType + '"  height="0px" width="0px"  onload="printIframe();"></iframe>';
        }

        function printIframe() {
            var x = document.getElementById("printframe");
            var y = (x.contentWindow || x.contentDocument);
            y.focus();
            // x.contentWindow.document.execCommand('print', false, null);
            var oframe = document.getElementById("printframe");
            var odoc = oframe.contentWindow.document;
            var strlenght = odoc.documentElement.getElementsByTagName('body')[0].innerText;

            if (strlenght.trim() == '') {
                var message = "Quantity for this product cannot be found";
                alert(message);
            }
            else {
                x.contentWindow.document.execCommand('print', false, null);
            }
            // y.print();
        }

    </script>
</telerik:RadCodeBlock>

 

 

Rumen
Telerik team
 answered on 28 Mar 2024
5 answers
129 views
Hello,

I want to stop the grid from highlighting text when the user clicks, holds, and drags across the cell.  Is this possible?
Attached is an image of what I'm trying to avoid.
I want a single click to highligh the row (which works fine), a double click to return a postback (works fine), but don't want any text highlighted on single click / drag.

Thanks!
William
Top achievements
Rank 1
Iron
 updated answer on 26 Mar 2024
0 answers
18 views

I have a Telerik RadGrid that has a DetailTable that can be expanded by the user. The DetailTable contains several selectable rows. The user is able to select some rows, then click a "Process Data" button that saves the row data in a Visual Basic code-behind file.

The RadGrid uses HierarchyLoadMode="conditional" to keep track of the DetailTable.

Two Problems-

1. When a user:
    - expands the DetailTable,
    - selects a row,
    - collapses the DetailTable,
    - clicks "Process Data,"
no data is saved because RadGrid.SelectedItems has 0 items. Even though the selected row is shown as selected in the UI.

However, if a user:
    - selects a row,
    - collapses the detail table,
    - clicks "Process Data" + gets an error from the VB saying "No rows selected," 
    - expands the detail table again,
    - selects the row again,
    - clicks "Process Data" again,
then the data will be saved because RadGrid.SelectedItems will include the row. Perhaps this is a bug?

In other words, a post back is needed to clear the detail table selections before RadGrid.SelectedItems actually includes items that have been selected in a collapsed HierarchyLoadMode="conditional" table.

2. Is there a way to have selections persist across pagination? Eg. If the user expands the DetailTable, selects a row, navigates to "page 2" of the detail table, then navigates back to "page 1," their selection is not saved.

John
Top achievements
Rank 1
 asked on 25 Mar 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?