Enable/Disable RadNumericTextBox

2 posts, 0 answers
  1. Ruth Dahan
    Ruth Dahan avatar
    27 posts
    Member since:
    Feb 2009

    Posted 06 Oct 2009 Link to this post

    Hi,
    I am trying to enable//disable RadNumericextBox using javascript.
    I am using the following as I saw in the documentation but i get the error: ntbRetention.enable is not a function

    function UseBackupChanged(useBackup,ntbRetentionId) { 
     
     
        var ntbRetention = document.getElementById(ntbRetentionId);    
            
        if (useBackup == true) {       
            ntbRetention.enable(); 
        } 
        else { 
            ntbRetention.disable(); 
        } 

    Can anyone please help what am I doing wrong??

    Thanks!
    Ruth
  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 06 Oct 2009 Link to this post

    Hello Ruth,

    In order to achieve the desired functionality I suggest you review the following forum thread, which elaborates on this matter.
    http://www.telerik.com/community/forums/aspnet-ajax/input/input-control-reference-is-null-when-called-from-window-onload.aspx

    Kind regards,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top