Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
3 views
I don't think OTPInput control has an autopostback and so I am using this code to call client event then do post back via hidden link button to my server side function. This is used for allowing a user to enter a three digit entry key number and doesn't require them to enter the numbers and press a button for speed. If the control had autopostback when all boxes have a value and the last box value is entered this would make the control much more useful. Is there a better way of doing this?

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

<!-- OTP input for three digit key number-->
<telerik:RadOTPInput ID="otpKeySearch" runat="server" Placeholder="0-9" Space="true" Type="Number">
    <Items>
        <telerik:OTPInputItem GroupLength="3" />
    </Items>
    <ClientEvents OnChange="keyOTPOnChange" />
</telerik:RadOTPInput>

<!-- Hidden linkbutton we will post back to -->
<asp:LinkButton ID="btnOtpPostBack"
                runat="server"
                OnClick="otpKeySearchChanged"
                UseSubmitBehavior="false"
                Style="display:none;" />

<script type="text/javascript">
    // Fires every time the OTP value changes
    function keyOTPOnChange(sender, args) {
        var value = args.get_value() || "";
        // Only act once we have exactly three digits 0-9
        if (value.length === 3 && /^\d{3}$/.test(value)) {
            // Force a full postback to the hidden LinkButton
            __doPostBack('<%= btnOtpPostBack.UniqueID %>', '');
        }
    }
</script>

    ' Handles the hidden LinkButton postback
    Protected Sub otpKeySearchChanged(sender As Object, e As EventArgs) Handles btnOtpPostBack.Click
        Dim theKeyNumber As String = ""
        If otpKeySearch IsNot Nothing AndAlso otpKeySearch.Value IsNot Nothing Then
            theKeyNumber = otpKeySearch.Value.Trim()
        End If
        If theKeyNumber <> "" AndAlso theKeyNumber.Length = 3 AndAlso IsNumeric(theKeyNumber) Then
            ' get key number from database and perform redirect to keys panel of relevant entry dashboard
        End If
        ' If we got here (redirect above failed - value was invalid or key not found in database) show the radNotify with message to user
        notifyInvalidSearch.Show()
    End Sub
Nick
Top achievements
Rank 1
 asked on 13 Sep 2025
1 answer
12 views
As you can see from the image, on mobile devices the date ends up breaking and making it impossible to view it completely.

This is my code:
<div class="col-xl-3 col-sm-6 col-md-6 col-xs-12 mb-2">
    <span class="EstiloLabelSimples">Data Vencimento:</span>
    <telerik:RadDatePicker RenderMode="Lightweight" ID="txtDataVencimentoCadastro" Width="100%" runat="server" />
</div>

I've tried using other RenderMode types, but none of them worked. Could someone help me achieve this responsiveness?
1 answer
53 views

Hi, I recently received a new laptop at work.  I was eventually able to compile and run both of my 2 applications in localhost, and deploy one of them to Dev and Prod.  However, I am having problems deploying my 2nd application. 

Again, it works fine in localhost.  When I deploy to the Dev environment, I get the error:

Could not load file or assembly 'Telerik.Web.UI, Version=2018.1.117.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

The version my reference points to is 2018.2.516.45.  So I don't know where the 2018.1.117.45 version is coming from, or why it is attempting to load this version.

Yes, I KNOW that this is an old version. If need be, I can probably upgrade to a newer version.  But if I can't figure out the version mis-match now, I think I will have the same problem with a newer version.  

Any help is appreciated.  

Thanks!

Attila Antal
Telerik team
 answered on 13 Jun 2025
1 answer
51 views

ScriptResource.axd?d=pbopGUyRoGMceL-ci2EaNCr6Dz-J2c03WyoCKxBcDTMoBx3qAj23lItrM0pL-o5km9ikY4QfqRDuZH3-53hC0jR2CXHTAiQgYV-9MhRb5Jp16E4Zndorh_IoOL8UoIu8Pe13tmi_DG4t62kaEGe6RDQrD0-3W0mu3F-NX0n8K3Q1&t=4227dd99:4233 Uncaught Sys.ArgumentUndefinedException: Sys.ArgumentUndefinedException:

undefined object 

 

at Error.Error$create [as create] (http://localhost:50107/MLS2025/ScriptResource.axd?d=pbopGUyRoGMceL-ci2EaNCr6Dz-J2c03WyoCKxBcDTMoBx3qAj23lItrM0pL-o5km9ikY4QfqRDuZH3-53hC0jR2CXHTAiQgYV-9MhRb5Jp16E4Zndorh_IoOL8UoIu8Pe13tmi_DG4t62kaEGe6RDQrD0-3W0mu3F-NX0n8K3Q1&t=4227dd99:237:15)
    at Error.Error$argumentUndefined [as argumentUndefined] (http://localhost:50107/MLS2025/ScriptResource.axd?d=pbopGUyRoGMceL-ci2EaNCr6Dz-J2c03WyoCKxBcDTMoBx3qAj23lItrM0pL-o5km9ikY4QfqRDuZH3-53hC0jR2CXHTAiQgYV-9MhRb5Jp16E4Zndorh_IoOL8UoIu8Pe13tmi_DG4t62kaEGe6RDQrD0-3W0mu3F-NX0n8K3Q1&t=4227dd99:361:21)
    at Function.Function$_validateParameterType [as _validateParameterType] (http://localhost:50107/MLS2025/ScriptResource.axd?d=pbopGUyRoGMceL-ci2EaNCr6Dz-J2c03WyoCKxBcDTMoBx3qAj23lItrM0pL-o5km9ikY4QfqRDuZH3-53hC0jR2CXHTAiQgYV-9MhRb5Jp16E4Zndorh_IoOL8UoIu8Pe13tmi_DG4t62kaEGe6RDQrD0-3W0mu3F-NX0n8K3Q1&t=4227dd99:161:23)
    at Function.Function$_validateParameter [as _validateParameter] (http://localhost:50107/MLS2025/ScriptResource.axd?d=pbopGUyRoGMceL-ci2EaNCr6Dz-J2c03WyoCKxBcDTMoBx3qAj23lItrM0pL-o5km9ikY4QfqRDuZH3-53hC0jR2CXHTAiQgYV-9MhRb5Jp16E4Zndorh_IoOL8UoIu8Pe13tmi_DG4t62kaEGe6RDQrD0-3W0mu3F-NX0n8K3Q1&t=4227dd99:130:18)
    at Function.Function$_validateParams [as _validateParams] (http://localhost:50107/MLS2025/ScriptResource.axd?d=pbopGUyRoGMceL-ci2EaNCr6Dz-J2c03WyoCKxBcDTMoBx3qAj23lItrM0pL-o5km9ikY4QfqRDuZH3-53hC0jR2CXHTAiQgYV-9MhRb5Jp16E4Zndorh_IoOL8UoIu8Pe13tmi_DG4t62kaEGe6RDQrD0-3W0mu3F-NX0n8K3Q1&t=4227dd99:84:22)
    at Sys$UI$DomElement$getElementById (http://localhost:50107/MLS2025/ScriptResource.axd?d=pbopGUyRoGMceL-ci2EaNCr6Dz-J2c03WyoCKxBcDTMoBx3qAj23lItrM0pL-o5km9ikY4QfqRDuZH3-53hC0jR2CXHTAiQgYV-9MhRb5Jp16E4Zndorh_IoOL8UoIu8Pe13tmi_DG4t62kaEGe6RDQrD0-3W0mu3F-NX0n8K3Q1&t=4227dd99:4229:22)
    at Telerik.Web.UI.RadNumericTextBox.get_wrapperElement (http://localhost:50107/MLS2025/ScriptResource.axd?d=CKWp3hTbfUbZoJvrOz6P-1Bc4rgigAPaci2aegHK05kLqUWhHbFakZxduWwS4ulMtXFzqjbdfzHYRioxldkWyr6xSxeq1fNzerUZV9YnCbReKw1UmgLJnCjI5xAZgFFRtGGJxjG8emuFsc5ouCoGMw2&t=22fafc4e:1:16539)
    at Telerik.Web.UI.RadNumericTextBox.set_enabled (http://localhost:50107/MLS2025/ScriptResource.axd?d=CKWp3hTbfUbZoJvrOz6P-1Bc4rgigAPaci2aegHK05kLqUWhHbFakZxduWwS4ulMtXFzqjbdfzHYRioxldkWyr6xSxeq1fNzerUZV9YnCbReKw1UmgLJnCjI5xAZgFFRtGGJxjG8emuFsc5ouCoGMw2&t=22fafc4e:1:18009)
    at Sys$Component$_setProperties (http://localhost:50107/MLS2025/ScriptResource.axd?d=pbopGUyRoGMceL-ci2EaNCr6Dz-J2c03WyoCKxBcDTMoBx3qAj23lItrM0pL-o5km9ikY4QfqRDuZH3-53hC0jR2CXHTAiQgYV-9MhRb5Jp16E4Zndorh_IoOL8UoIu8Pe13tmi_DG4t62kaEGe6RDQrD0-3W0mu3F-NX0n8K3Q1&t=4227dd99:3758:24)
    at Sys$Component$create (http://localhost:50107/MLS2025/ScriptResource.axd?d=pbopGUyRoGMceL-ci2EaNCr6Dz-J2c03WyoCKxBcDTMoBx3qAj23lItrM0pL-o5km9ikY4QfqRDuZH3-53hC0jR2CXHTAiQgYV-9MhRb5Jp16E4Zndorh_IoOL8UoIu8Pe13tmi_DG4t62kaEGe6RDQrD0-3W0mu3F-NX0n8K3Q1&t=4227dd99:3816:9)
Vasko
Telerik team
 answered on 11 Jun 2025
2 answers
37 views

Hello,

I have a RadGrid embedded in a RadTabStrip. This is defined in a UserControl with a RadAjaxManagerProxy. It displays content from a DB server. I have a GridButtonColumn that is defined below. Everything works fine except that when I try to delete a row by clicking on the icon it won't work initially. A second click results in a callback to the server's RgAttachments_ItemCommand appropriately. This behaviour happens consistently. I took a look at the generated code and noticed a difference in the button's clientside onclick handler

 

This following generated javascript works

if(!$find('ctl00_MainContent_ctlRqstAttachments_RgAttachmentRevision').confirm('Are you sure you wish to delete this file attachment?', event, 'ctl00_MainContent_ctlRqstAttachments_RgAttachmentRevision', 'Delete'))return false;__doPostBack('ctl00$MainContent$ctlRqstAttachments$RgAttachmentRevision$ctl00$ctl14$ctl00','')

This generated code doesn't

if(!$find('ctl00_MainContent_ctlRqstAttachments_RgAttachmentRevision').confirm('Are you sure you wish to delete this file attachment?', event, 'ctl00_MainContent_ctlRqstAttachments_RgAttachmentRevision', 'Delete'))return false;__doPostBack('ctl00$MainContent$ctlRqstAttachments$RgAttachmentRevision$ctl00$ctl12$ctl01','')

 

The column in question

                            <telerik:GridButtonColumn HeaderText="Delete" ConfirmText="Are you sure you wish to delete this file attachment?" ConfirmDialogType="RadWindow" ButtonCssClass="btn btn-outline-danger btn-sm rounded" ConfirmTitle="Delete" ButtonType="FontIconButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ItemStyle-ForeColor="Red">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </telerik:GridButtonColumn>

 

Any help to resolve this is greatly appreciated

Gavin
Top achievements
Rank 1
Iron
 answered on 28 Apr 2025
1 answer
34 views

I'm experiencing an issue with custom button icons not displaying in the RadEditor ribbon bar. I've added a custom button that functions correctly, but the icon specified in the ImageUrl property does not appear on the UI.

Issue Details:

I've added the following custom tool to the RadEditor toolbar:

xml
<tool name="File" size="large" text="File Add" ImageUrl="~/Assets/images/add.png"/>

The button appears in the ribbon bar and the functionality works as expected, but the icon is not visible.

Troubleshooting Steps Already Taken:

  1. Verified the image exists at the specified path
  2. Tried both relative (~/) and absolute paths
  3. Checked for case sensitivity in the ImageUrl attribute (tried both ImageUrl and imageUrl)
  4. Specified width and height attributes for the image

    Questions:

    1. Is there any specific requirement or setting I'm missing for custom icons in the ribbon bar?
    2. Could there be an issue with how custom icons are rendered in the ribbon bar versus standard toolbar?
    3. Are there any size limitations or format requirements for custom icons in the ribbon?
    4. Is there a different approach recommended for adding custom icons to ribbon bar buttons?

     

    Rumen
    Telerik team
     answered on 28 Apr 2025
    2 answers
    51 views

    Yesterday, April 1st, around 2:35PM Eastern, several of my web forms became extremely slow/non-responsive for a period of about 5 minutes or so. This also happened on March 14th. Since it happened so quickly, I could only do limited troubleshooting, but it seems like any of our forms that has a Radgrid became slow. One of our forms has been in use since last winter and has not been changed since last last year. Only a few hundred records exist in that database.

    I tried to open the web forms in Edge, instead of Chrome, and sometimes the form would initially open. When I closed out and went back in, the form would become non-responsive. I have menus on my forms and those always loaded, but the grid did not. And then after a few minutes, everything started to work fine again.

    We checked IIS and the memory seemed fine at the time of the slowness. We checked the error logs at that time of failure and did not see anything either. It was a bit tough to troubleshoot as it was relatively brief both times it happened.

    Has anyone else complained about this? Maybe a recent patch could be behind this?  I'm not sure what to think/try.

    Rumen
    Telerik team
     answered on 08 Apr 2025
    2 answers
    93 views

    I'm experiencing an issue where the page becomes unresponsive for a long time whenever any Telerik control (such as refresh or loader) is triggered. The page keeps loading indefinitely, causing significant delays, and eventually, the page becomes unresponsive.

    Additionally, the following error appears in the browser console:

    Uncaught Sys.WebForms.PageRequestManagerTimeoutException: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.
    at Error.create (https://test.plc.com/GS/Telerik.Web.UI.WebResource.axd?...:6:2736)
    at Sys.WebForms.PageRequestManager._createPageRequestManagerTimeoutError (https://wpinhouse.knpc.com/GPCS/Telerik.Web.UI.WebResource.axd?...:15:11219)
    at Sys.WebForms.PageRequestManager._onFormSubmitCompleted (https://wpinhouse.knpc.com/GPCS/Telerik.Web.UI.WebResource.axd?...:15:11219)
    

    The issue arises when interacting with Telerik controls that trigger a page request, causing the page to hang and ultimately become unresponsive.

     

    issue started from Feb 17 2025

     

     

    Sanju
    Top achievements
    Rank 1
    Iron
     answered on 12 Mar 2025
    0 answers
    124 views

    got this error

    'Could not load file or assembly 'Telerik.Web.UI, Version=2024.3.805.462, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))'

    Bj
    Top achievements
    Rank 1
     asked on 06 Mar 2025
    1 answer
    59 views

    I have a datatable in memory that I would like to display in a telerik:RadSpreadsheet. I know I can iterate through the datatable and build a sheet to display. 

    I'm trying to figure out how to use the DataTableFormatProvider to load the datatable in one shot. I found examples of how to do with the Telerik.Windows.Documents spreadsheet, but how do I do  it with the RadSpreadsheet model?

     

     

    Vasko
    Telerik team
     answered on 24 Feb 2025
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Jay
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    yw
    Top achievements
    Rank 2
    Iron
    Iron
    Stefan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Kao Hung
    Top achievements
    Rank 1
    Iron
    Bohdan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Jay
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    yw
    Top achievements
    Rank 2
    Iron
    Iron
    Stefan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Kao Hung
    Top achievements
    Rank 1
    Iron
    Bohdan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?