This is a migrated thread and some comments may be shown as answers.

Enable/Disable RadNumericTextBox

1 Answer 213 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ruth Dahan
Top achievements
Rank 1
Ruth Dahan asked on 06 Oct 2009, 05:03 PM
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

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 06 Oct 2009, 05:36 PM
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.
Tags
Input
Asked by
Ruth Dahan
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or